X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/eeafdfccb63314d85802f3064b6fb904375bda03..29f2eef0ba05968f84c3afad30e1fa105fc56ed3:/sommitrealweird/photo/urls.py diff --git a/sommitrealweird/photo/urls.py b/sommitrealweird/photo/urls.py index 3e9d28c..c5de1db 100644 --- a/sommitrealweird/photo/urls.py +++ b/sommitrealweird/photo/urls.py @@ -1,9 +1,9 @@ -from django.conf.urls import url +from django.urls import re_path from photo.models import Album from photo.views import AlbumListView, PhotoListView, PhotoView urlpatterns = [ - url(r'^$', AlbumListView.as_view()), - url(r'^(?P[^/]*)/$', PhotoListView.as_view()), - url(r'^(?P[^/]*)/(?P[0-9]+)/$', PhotoView.as_view()), + re_path(r'^$', AlbumListView.as_view()), + re_path(r'^(?P[^/]*)/$', PhotoListView.as_view()), + re_path(r'^(?P[^/]*)/(?P[0-9]+)/$', PhotoView.as_view()), ]