]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - sommitrealweird/bpcms/urls.py
Update for newer django
[sommitrealweird.git] / sommitrealweird / bpcms / urls.py
1 from django.urls import re_path
2 import bpcms.views
3
4 urlpatterns = [
5     re_path(r'^$', bpcms.views.document_view, {'path': 'index'}, name='bpcms-document-view'),
6     re_path(r'^css-docs/(?P<slug>[^/]+)$', bpcms.views.css_view),
7     re_path(r'^(?P<path>.*)/$', bpcms.views.document_view, name='bpcms-document-view'),
8 ]
9