Browse Source

Django example supporting Django 1.9

Ask Solem 9 năm trước cách đây
mục cha
commit
7e3da76e0e
1 tập tin đã thay đổi với 2 bổ sung5 xóa
  1. 2 5
      examples/django/proj/urls.py

+ 2 - 5
examples/django/proj/urls.py

@@ -1,13 +1,10 @@
-from django.conf.urls import (  # noqa
-    patterns, include, url, handler404, handler500,
-)
+from django.conf.urls import include, url, handler404, handler500  # noqa
 
 
 # Uncomment the next two lines to enable the admin:
 # Uncomment the next two lines to enable the admin:
 # from django.contrib import admin
 # from django.contrib import admin
 # admin.autodiscover()
 # admin.autodiscover()
 
 
-urlpatterns = patterns(
-    '',
+urlpatterns = (
     # Examples:
     # Examples:
     # url(r'^$', 'proj.views.home', name='home'),
     # url(r'^$', 'proj.views.home', name='home'),
     # url(r'^proj/', include('proj.foo.urls')),
     # url(r'^proj/', include('proj.foo.urls')),