1 from django.conf.urls.defaults import *
2 from settings import MEDIA_ROOT, MEDIA_URL
4 handler404 = 'generic.views.render_404'
6 urlpatterns = patterns('',
8 # (r'^sommitrealweird/', include('sommitrealweird.foo.urls')),
10 # Uncomment this for admin:
11 (r'^$', 'bpcms.views.document_view', {'slug': 'index'}),
12 (r'^admin/', include('django.contrib.admin.urls')),
13 (r'^(?:content/|)(?P<slug>[^/]+)/$', 'bpcms.views.document_view'),
14 (r'^(?:content/|)(?P<folders>.*)/(?P<slug>[^/]+)/$', 'bpcms.views.document_view'),
15 (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': MEDIA_ROOT, 'show_indexes': True}),