Fix up for django 1.10
[sommitrealweird.git] / sommitrealweird / bpcms / urls.py
index 9143a6714d3351d85549a4116bf4f786529169cf..1a9111f3183e406acef207b3a789071414a80a06 100644 (file)
@@ -1,8 +1,10 @@
-from django.conf.urls.defaults import *
+from django.conf.urls import url
+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 = [
+    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'),
+]