django-galleries icon indicating copy to clipboard operation
django-galleries copied to clipboard

What i do wrong ?

Open Darex1991 opened this issue 11 years ago • 2 comments

In settings : PROJECT_PATH = os.path.split(os.path.abspath(os.path.dirname(file)))[0]

INSTALLED_APPS = ( 'galleries', 'djangocms_admin_style', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.comments', 'django.contrib.admin', 'Web', 'respite', 'orderable', 'django_alterflave', 'restthumbnails', 'tinymce', 'mce_filebrowser', 'easy_thumbnails', 'image_cropping', ) IMAGE_CROPPING_RATIO = '5/4' from easy_thumbnails.conf import settings as easy_thumbnails_defaults

from easy_thumbnails import defaults

THUMBNAIL_PROCESSORS = ( 'image_cropping.thumbnail_processors.crop_corners', ) + easy_thumbnails_defaults.THUMBNAIL_PROCESSORS

urls: urlpatterns = patterns('', (r'^admin/galleries', include('galleries.urls', namespace='galleries', app_name='galleries')), ... ) And its not work.. I try add stylesheets from galleries/static to /static/ or add this to STATICFILES_DIRS but not work?

wrong

EDIT

//Django Version: 1.5.5// When add : gallery = GalleryForeignKey('galleries.Gallery', blank=True, null=True, on_delete=models.SET_NULL) it give error: init_() takes at least 3 arguments (3 given) galleries\fields.py in formfield

    kwargs['widget'] = GalleryForeignKeyWidget(self.rel, using=kwargs.get('using'))

galleries\widgets.py in init

    super(GalleryForeignKeyWidget, self).__init__(*args, **kwargs)

Darex1991 avatar Feb 20 '14 19:02 Darex1991

Hi, sorry for the late reply, I'm currently on vacation. I'm sorry, but I have not used Galleries with django 1.5 or later, and I don't have a chance to debug this at the moment. But I just merged a pull request from @ivancrneto that might have fixed it (https://github.com/espenhogbakk/django-galleries/pull/3) So check the latest source from the master branch, and see if that helps.

espenhogbakk avatar Feb 23 '14 05:02 espenhogbakk

I swap files, django-orderable, django-image-cropping, but nothing change.

Darex1991 avatar Feb 24 '14 08:02 Darex1991