-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'^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'),
+]