fix: quick and dirty update to django 4.2
[sommitrealweird.git] / sommitrealweird / photo / urls.py
index 3e9d28c6c921179c82a6ce128098d4c685c20571..c5de1db56b170bedfb9432ecc7f38d478009141d 100644 (file)
@@ -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<slug>[^/]*)/$', PhotoListView.as_view()),
-    url(r'^(?P<slug>[^/]*)/(?P<id>[0-9]+)/$', PhotoView.as_view()),
+    re_path(r'^$', AlbumListView.as_view()),
+    re_path(r'^(?P<slug>[^/]*)/$', PhotoListView.as_view()),
+    re_path(r'^(?P<slug>[^/]*)/(?P<id>[0-9]+)/$', PhotoView.as_view()),
 ]