Skip to content

Commit

Permalink
Fix example urls to work with recent Django
Browse files Browse the repository at this point in the history
  • Loading branch information
MRigal committed Sep 22, 2020
1 parent c901af8 commit 4e2612a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions example/urls.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 4e2612a

Please sign in to comment.