X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/5d2c22628bbba4eb7ea12a1f5e11bdcc6c866e03..075239c730821f8acd231cd25987bb1c16031421:/sommitrealweird/bpcms/urls.py diff --git a/sommitrealweird/bpcms/urls.py b/sommitrealweird/bpcms/urls.py index 2d24d30..1a9111f 100644 --- a/sommitrealweird/bpcms/urls.py +++ b/sommitrealweird/bpcms/urls.py @@ -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[^/]+)$', 'bpcms.views.css_view'), - (r'^(?P[^/]+)/$', 'bpcms.views.document_view'), - (r'^(?P.*)/(?P[^/]+)/$', 'bpcms.views.document_view'), -) +urlpatterns = [ + url(r'^$', bpcms.views.document_view, {'slug': 'index'}, name='bpcms-document-view'), + url(r'^css-docs/(?P[^/]+)$', bpcms.views.css_view), + url(r'^(?P[^/]+)/$', bpcms.views.document_view, name='bpcms-document-view'), + url(r'^(?P.*)/(?P[^/]+)/$', bpcms.views.document_view, name='bpcms-document-view'), +]