Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What i do wrong ? #2

Open
Darex1991 opened this issue Feb 20, 2014 · 2 comments
Open

What i do wrong ? #2

Darex1991 opened this issue Feb 20, 2014 · 2 comments
Labels

Comments

@Darex1991
Copy link

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)
@espenhogbakk
Copy link
Owner

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.

@Darex1991
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants