# Uncomment this for admin:
(r'^$', 'content.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>[^/]+)/$', 'content.views.document_view'),
+ (r'^(?:content/|)(?P<folders>.*)/(?P<slug>[^/]+)/$', 'content.views.document_view'),
(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': MEDIA_ROOT, 'show_indexes': True}),
)