-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<slug>[^/]+)$', bpcms.views.css_view),
- url(r'^(?P<slug>[^/]+)/$', bpcms.views.document_view, name='bpcms-document-view'),
- url(r'^(?P<folders>.*)/(?P<slug>[^/]+)/$', bpcms.views.document_view, name='bpcms-document-view'),
+ re_path(r'^$', bpcms.views.document_view, {'slug': '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'),
]