]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - sommitrealweird/urls.py
Make h1 tags of templates not have a preceeding space.
[sommitrealweird.git] / sommitrealweird / urls.py
1 from django.conf.urls.defaults import *
2 from settings import MEDIA_ROOT, MEDIA_URL
3
4 handler404 = 'generic.views.render_404'
5
6 urlpatterns = patterns('',
7     # Example:
8     # (r'^sommitrealweird/', include('sommitrealweird.foo.urls')),
9
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}),
16 )