瀏覽代碼

Django example supporting Django 1.9

Ask Solem 9 年之前
父節點
當前提交
7e3da76e0e
共有 1 個文件被更改,包括 2 次插入5 次删除
  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:
 # from django.contrib import admin
 # admin.autodiscover()
 
-urlpatterns = patterns(
-    '',
+urlpatterns = (
     # Examples:
     # url(r'^$', 'proj.views.home', name='home'),
     # url(r'^proj/', include('proj.foo.urls')),