X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/acedb5e82f30e6502e2801db9f8d64d879f44347..refs/heads/django-4.2:/sommitrealweird/bpcms/urls.py?ds=inline diff --git a/sommitrealweird/bpcms/urls.py b/sommitrealweird/bpcms/urls.py index d29225a..2fc374c 100644 --- a/sommitrealweird/bpcms/urls.py +++ b/sommitrealweird/bpcms/urls.py @@ -1,9 +1,9 @@ -from django.conf.urls.defaults import * +from django.urls import re_path +import bpcms.views -urlpatterns = patterns('', - (r'^$', 'bpcms.views.document_view', {'slug': 'index'}), - (r'^css-docs/(?P.*)$', 'bpcms.views.css_view'), - (r'^(?P[^/]+)/$', 'bpcms.views.document_view'), - (r'^(?P.*)/(?P[^/]+)/$', 'bpcms.views.document_view'), -) +urlpatterns = [ + 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'), +]