Skip to content

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