espenhogbakk / django-galleries

django-galleries is a photo gallery app for django that enables you to add/edit/remove images inline with the model that the gallery belongs to in the django admin interface.
MIT License
17 stars 6 forks source link

What i do wrong ? #2

Open Darex1991 opened 10 years ago

Darex1991 commented 10 years ago

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.SETNULL) 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)
espenhogbakk commented 10 years ago

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.

Darex1991 commented 10 years ago

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