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

compatibility for Django version>1.5 #22

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

GuidoE
Copy link

@GuidoE GuidoE commented Sep 23, 2014

removes usage of deprecated urls.defaults module when Django version > 1.5. Checks Django version so it remains backwards compatible. Successfully ran follow tests.

removes usage of deprecated urls.defaults module when Django version > 1.5. Checks Django version so it remains backwards compatible.
@GuidoE
Copy link
Author

GuidoE commented Sep 23, 2014

Per Django docs: django.conf.urls.defaults will be removed. The functions include(), patterns() and url() plus handler404, handler500, are now available through django.conf.urls.
https://docs.djangoproject.com/en/1.6/internals/deprecation/

@GuidoE GuidoE closed this Sep 23, 2014
@GuidoE GuidoE reopened this Sep 23, 2014
@philipn
Copy link

philipn commented Dec 13, 2014

+1 Please merge this!

GuidoE added 2 commits August 9, 2015 22:52
Django 1.8 deprecates 'module_name' attribute in Options object. This uses an if statement to test against Django version, and if it finds version 1.8, it uses 'model_name' instead.
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

Successfully merging this pull request may close these issues.

2 participants