X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/2d5a803e2b8bd6ed72de946d4cfbb7b880493bf6..525b287d2a1c652749f6e175568695907ac3a65b:/sommitrealweird/bpcms/urls.py?ds=inline diff --git a/sommitrealweird/bpcms/urls.py b/sommitrealweird/bpcms/urls.py index 9143a67..1a9111f 100644 --- a/sommitrealweird/bpcms/urls.py +++ b/sommitrealweird/bpcms/urls.py @@ -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[^/]+)/$', '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'), +]