forked from Therapoid/django-password-policies
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds Django 1.10 compatibility while maintaining Django 1.7 compatibi…
…lity
- Loading branch information
1 parent
4816664
commit 4c9cae3
Showing
8 changed files
with
131 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
from django.conf.urls import include, patterns, url | ||
|
||
|
||
from django.conf.urls import include, url | ||
try: | ||
from django.conf.urls import patterns | ||
except ImportError: | ||
patterns = False | ||
|
||
from password_policies.tests.views import TestHomeView | ||
|
||
|
||
urlpatterns = patterns('', | ||
url(r'^password/', include('password_policies.urls')), | ||
url(r'^$', TestHomeView.as_view(), name='home'), | ||
) | ||
urlpatterns = [ | ||
url(r'^password/', include('password_policies.urls')), | ||
url(r'^$', TestHomeView.as_view(), name='home'), | ||
] | ||
|
||
if patterns: | ||
urlpatterns = patterns('', *urlpatterns) # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
django>=1.7,<1.10 | ||
django>=1.7,<1.11 | ||
django-easysettings>=1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters