]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - sommitrealweird/urls.py
Add basic submenu support
[sommitrealweird.git] / sommitrealweird / urls.py
index 75c6a6381975d5ee2462255332f2582bc2e4832c..39adc87cdfb542b9fe4fb9e2f3ee985d278d366f 100644 (file)
@@ -8,10 +8,9 @@ urlpatterns = patterns('',
     # (r'^sommitrealweird/', include('sommitrealweird.foo.urls')),
 
     # Uncomment this for admin:
-    (r'^$', 'content.views.document_view', {'slug': 'index'}),
+    (r'^$', 'bpcms.views.document_view', {'slug': 'index'}),
     (r'^admin/', include('django.contrib.admin.urls')),
-    (r'^content/(?P<slug>[^/]+)/$', 'content.views.document_view'),
-    (r'^content/(?P<folders>.*)/(?P<slug>[^/]+)/$', 'content.views.document_view'),
-    (r'^content/$', 'content.views.document_view', {'slug': 'index'}),
+    (r'^(?:content/|)(?P<slug>[^/]+)/$', 'bpcms.views.document_view'),
+    (r'^(?:content/|)(?P<folders>.*)/(?P<slug>[^/]+)/$', 'bpcms.views.document_view'),
     (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': MEDIA_ROOT, 'show_indexes': True}),
 )