Skip to content

Commit f56b904

Browse files
committed
fix urls for django 2.0
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
1 parent d5d2312 commit f56b904

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

gettingstarted/urls.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from django.conf.urls import include, url
2+
from django.urls import path
23

34
from django.contrib import admin
45
admin.autodiscover()
@@ -12,5 +13,5 @@
1213
urlpatterns = [
1314
url(r'^$', hello.views.index, name='index'),
1415
url(r'^db', hello.views.db, name='db'),
15-
url(r'^admin/', include(admin.site.urls)),
16+
path('admin/', admin.site.urls),
1617
]

0 commit comments

Comments
 (0)