X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/c2e85644c4128b2545fd4bbe0382f4e2e502bd83..56b2cdf3569443cf4504fe085de9db0466dcd09f:/sommitrealweird/urls.py diff --git a/sommitrealweird/urls.py b/sommitrealweird/urls.py index 75c6a63..3cdfc7f 100644 --- a/sommitrealweird/urls.py +++ b/sommitrealweird/urls.py @@ -10,8 +10,7 @@ urlpatterns = patterns('', # Uncomment this for admin: (r'^$', 'content.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[^/]+)/$', 'content.views.document_view'), + (r'^(?:content/|)(?P.*)/(?P[^/]+)/$', 'content.views.document_view'), (r'^media/(?P.*)$', 'django.views.static.serve', {'document_root': MEDIA_ROOT, 'show_indexes': True}), )