]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - sommitrealweird/bpcms/urls.py
Update for newer django
[sommitrealweird.git] / sommitrealweird / bpcms / urls.py
index 264af0ab5c9ba482c67e1facb7a6a1c57f4b65d3..2fc374cbe3aa7a15bbe2cd7cb90bdd11a27bd092 100644 (file)
@@ -2,9 +2,8 @@ from django.urls import re_path
 import bpcms.views
 
 urlpatterns = [
-    re_path(r'^$', bpcms.views.document_view, {'slug': 'index'}, name='bpcms-document-view'),
+    re_path(r'^$', bpcms.views.document_view, {'path': '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'),
+    re_path(r'^(?P<path>.*)/$', bpcms.views.document_view, name='bpcms-document-view'),
 ]