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

Django 1.7 compatibility #43

Closed
ataz opened this issue Jan 8, 2015 · 6 comments
Closed

Django 1.7 compatibility #43

ataz opened this issue Jan 8, 2015 · 6 comments

Comments

@ataz
Copy link

ataz commented Jan 8, 2015

When trying to migrate django_cron in a project with Django 1.7, the following error is raised:
django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: django_cron

Due to the changes in Django 1.7 requiring apps to have a unique label. https://docs.djangoproject.com/en/1.7/ref/applications/#for-application-authors

@gkadillak
Copy link

I'm running into the same issue.

@maciej-jaworski
Copy link
Contributor

Did you name your own app django_cron? The solution then is to simply rename your app.

@ataz
Copy link
Author

ataz commented Mar 31, 2015

@mjaworski That is not the issue; the problem lies with the package itself. It's really easy to reproduce, just try to use this lib in a Django 1.7 env and it won't work :-)

For me the "solution" was to use https://github.com/kraiz/django-crontab instead.

@maciej-jaworski
Copy link
Contributor

@ataz just did, added django_cron to INSTALLED_APPS, ran migrations and everything worked fine

@ataz
Copy link
Author

ataz commented Mar 31, 2015

Ok then I'm not sure what it is. I know that for me at least the problem wasn't that my app was named django_cron... This was 3 months ago though, so I don't remember the details. Perhaps @gkadillak can provide more details regarding the issue?

@maciej-jaworski
Copy link
Contributor

0.4.0 has been pushed, it's been tested on both 1.7 and 1.8

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

No branches or pull requests

3 participants