X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/c2e85644c4128b2545fd4bbe0382f4e2e502bd83..66e84bbddc80e7f3ac04da6433a70da7da97698b:/sommitrealweird/urls.py?ds=inline diff --git a/sommitrealweird/urls.py b/sommitrealweird/urls.py index 75c6a63..39adc87 100644 --- a/sommitrealweird/urls.py +++ b/sommitrealweird/urls.py @@ -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[^/]+)/$', 'content.views.document_view'), - (r'^content/(?P.*)/(?P[^/]+)/$', 'content.views.document_view'), - (r'^content/$', 'content.views.document_view', {'slug': 'index'}), + (r'^(?:content/|)(?P[^/]+)/$', 'bpcms.views.document_view'), + (r'^(?:content/|)(?P.*)/(?P[^/]+)/$', 'bpcms.views.document_view'), (r'^media/(?P.*)$', 'django.views.static.serve', {'document_root': MEDIA_ROOT, 'show_indexes': True}), )