]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - sommitrealweird/bpcms/urls.py
Fix photo ordering
[sommitrealweird.git] / sommitrealweird / bpcms / urls.py
index 2d24d30236124a39ba983a142485b243b6a51da2..1a9111f3183e406acef207b3a789071414a80a06 100644 (file)
@@ -1,9 +1,10 @@
-from django.conf.urls import patterns
+from django.conf.urls import url
+import bpcms.views
 
-urlpatterns = patterns('',
-    (r'^$', 'bpcms.views.document_view', {'slug': 'index'}),
-    (r'^css-docs/(?P<slug>[^/]+)$', 'bpcms.views.css_view'),
-    (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'),
+]