Skip to content

Commit

Permalink
Django 1.10: Do not use patterns function.
Browse files Browse the repository at this point in the history
  • Loading branch information
umairwaheed authored and timabbott committed Nov 4, 2016
1 parent d814468 commit b140236
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions analytics/urls.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from django.conf.urls import patterns, url
from django.conf.urls import url

i18n_urlpatterns = [
url(r'^activity$', 'analytics.views.get_activity'),
url(r'^realm_activity/(?P<realm>[\S]+)/$', 'analytics.views.get_realm_activity'),
url(r'^user_activity/(?P<email>[\S]+)/$', 'analytics.views.get_user_activity'),
]

urlpatterns = patterns('', *i18n_urlpatterns)
urlpatterns = i18n_urlpatterns
4 changes: 2 additions & 2 deletions corporate/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.conf.urls import patterns, url
from django.conf.urls import url
from django.views.generic import TemplateView, RedirectView

i18n_urlpatterns = [
Expand All @@ -12,4 +12,4 @@
url(r'^privacy/$', TemplateView.as_view(template_name='corporate/privacy.html')),
]

urlpatterns = patterns('', *i18n_urlpatterns)
urlpatterns = i18n_urlpatterns
2 changes: 1 addition & 1 deletion zilencer/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.conf.urls import patterns, url, include
from django.conf.urls import url, include

i18n_urlpatterns = [
# SSO dispatch page for desktop app with SSO
Expand Down
2 changes: 1 addition & 1 deletion zproject/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.conf import settings
from django.conf.urls import patterns, url, include
from django.conf.urls import url, include
from django.conf.urls.i18n import i18n_patterns
from django.views.generic import TemplateView, RedirectView
from django.utils.module_loading import import_string
Expand Down

0 comments on commit b140236

Please sign in to comment.