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

Fixed compatibility with Django 1.10 #118

Closed
wants to merge 2 commits into from
Closed

Fixed compatibility with Django 1.10 #118

wants to merge 2 commits into from

Conversation

aropan
Copy link

@aropan aropan commented Aug 7, 2016

Based on #116. Fixed RemovedInDjango110Warning : django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.. Checked work on Django 1.9 and 1.10.

@andrijan
Copy link

Any change of getting this merged?

from django import get_version
from distutils.version import StrictVersion

if StrictVersion(get_version()) < StrictVersion("1.10"):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May want to change this to check for a version before 1.8 or 1.9 as the new list-style url patterns are supported in both of those versions and 1.9 throws a warning with the wrapped patterns.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edited and checked on 1.8, 1.9 and 1.10.

@passiweinberger
Copy link

Will this be merged? Support of 1.10 would be really helpful ;)

@aropan aropan closed this Mar 4, 2019
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.

4 participants