]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - sommitrealweird/urls.py
75c6a6381975d5ee2462255332f2582bc2e4832c
[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'^$', 'content.views.document_view', {'slug': 'index'}),
12     (r'^admin/', include('django.contrib.admin.urls')),
13     (r'^content/(?P<slug>[^/]+)/$', 'content.views.document_view'),
14     (r'^content/(?P<folders>.*)/(?P<slug>[^/]+)/$', 'content.views.document_view'),
15     (r'^content/$', 'content.views.document_view', {'slug': 'index'}),
16     (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': MEDIA_ROOT, 'show_indexes': True}),
17 )