You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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
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 (#3) So check the latest source from the master branch, and see if that helps.
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?
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
galleries\widgets.py in init
The text was updated successfully, but these errors were encountered: