X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/29f2eef0ba05968f84c3afad30e1fa105fc56ed3..refs/heads/django-4.2:/sommitrealweird/bpcms/urls.py?ds=sidebyside diff --git a/sommitrealweird/bpcms/urls.py b/sommitrealweird/bpcms/urls.py index 264af0a..2fc374c 100644 --- a/sommitrealweird/bpcms/urls.py +++ b/sommitrealweird/bpcms/urls.py @@ -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[^/]+)$', bpcms.views.css_view), - re_path(r'^(?P[^/]+)/$', bpcms.views.document_view, name='bpcms-document-view'), - re_path(r'^(?P.*)/(?P[^/]+)/$', bpcms.views.document_view, name='bpcms-document-view'), + re_path(r'^(?P.*)/$', bpcms.views.document_view, name='bpcms-document-view'), ]