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