]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - sommitrealweird/bpcms/urls.py
fix: quick and dirty update to django 4.2
[sommitrealweird.git] / sommitrealweird / bpcms / urls.py
index 1a9111f3183e406acef207b3a789071414a80a06..264af0ab5c9ba482c67e1facb7a6a1c57f4b65d3 100644 (file)
@@ -1,10 +1,10 @@
-from django.conf.urls import url
+from django.urls import re_path
 import bpcms.views
 
 urlpatterns = [
-    url(r'^$', bpcms.views.document_view, {'slug': 'index'}, name='bpcms-document-view'),
-    url(r'^css-docs/(?P<slug>[^/]+)$', bpcms.views.css_view),
-    url(r'^(?P<slug>[^/]+)/$', bpcms.views.document_view, name='bpcms-document-view'),
-    url(r'^(?P<folders>.*)/(?P<slug>[^/]+)/$', bpcms.views.document_view, name='bpcms-document-view'),
+    re_path(r'^$', bpcms.views.document_view, {'slug': 'index'}, name='bpcms-document-view'),
+    re_path(r'^css-docs/(?P<slug>[^/]+)$', bpcms.views.css_view),
+    re_path(r'^(?P<slug>[^/]+)/$', bpcms.views.document_view, name='bpcms-document-view'),
+    re_path(r'^(?P<folders>.*)/(?P<slug>[^/]+)/$', bpcms.views.document_view, name='bpcms-document-view'),
 ]