X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/4ad54bc9a9429a2c5c288192c663f75ae1e7aad9..e1b491186d911fcdc98b18b4c0031ed65d43fdae:/sommitrealweird/bpcms/urls.py?ds=sidebyside diff --git a/sommitrealweird/bpcms/urls.py b/sommitrealweird/bpcms/urls.py index 1a9111f..2fc374c 100644 --- a/sommitrealweird/bpcms/urls.py +++ b/sommitrealweird/bpcms/urls.py @@ -1,10 +1,9 @@ -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[^/]+)$', bpcms.views.css_view), - url(r'^(?P[^/]+)/$', bpcms.views.document_view, name='bpcms-document-view'), - url(r'^(?P.*)/(?P[^/]+)/$', bpcms.views.document_view, 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'), ]