Skip to content

Commit

Permalink
urlpatterns should be a plain list
Browse files Browse the repository at this point in the history
  • Loading branch information
bashu committed Jan 27, 2016
1 parent 7908c18 commit 7a239f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from django.views.generic import TemplateView

urlpatterns = patterns('',
urlpatterns = [
url(r'^tz_detect/', include('tz_detect.urls')),
url(r'^$', TemplateView.as_view(template_name='index.html')),
)
]
4 changes: 2 additions & 2 deletions tz_detect/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

from .views import SetOffsetView

urlpatterns = patterns('',
urlpatterns = [
url(r'^set/$', SetOffsetView.as_view(), name="tz_detect__set"),
)
]

0 comments on commit 7a239f4

Please sign in to comment.