소스 검색

Django example supporting Django 1.9

Ask Solem 10 년 전
부모
커밋
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')),