diff --git a/example/urls.py b/example/urls.py index 41bfb54..224e992 100644 --- a/example/urls.py +++ b/example/urls.py @@ -1,11 +1,11 @@ from django.conf import settings -from django.conf.urls import include, patterns, static, url +from django.conf.urls import static from django.contrib import admin +from django.urls import path admin.autodiscover() -urlpatterns = patterns( - "", - url(r"^admin/", include(admin.site.urls)), -) +urlpatterns = [ + path('admin/', admin.site.urls), +] urlpatterns += static.static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)