]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - sommitrealweird/urls.py
8415b54f82cb15f224421e187a4d37e13e62a32e
[sommitrealweird.git] / sommitrealweird / urls.py
1 from django.conf.urls.defaults import *
2 from settings import MEDIA_ROOT, MEDIA_URL
3 from blog.feeds import LatestBlogEntries
4 from django.contrib import admin
5
6 handler404 = 'generic.views.render_404'
7
8 feeds_dict = {
9     'blog': LatestBlogEntries,
10     }
11
12 #admin.autodiscover()
13
14 urlpatterns = patterns('',
15     # Example:
16     # (r'^sommitrealweird/', include('sommitrealweird.foo.urls')),
17
18     # Uncomment this for admin:
19     (r'^$', 'bpcms.views.document_view', {'slug': 'index'}),
20     (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': MEDIA_ROOT, 'show_indexes': True}),
21     (r'^admin/(.*)$', admin.site.root),
22     (r'^blog/', include('blog.urls')),
23     (r'^feeds/(?P<url>.*)/', 'django.contrib.syndication.views.feed', {'feed_dict': feeds_dict}),
24     (r'^(?:content/|)', include('bpcms.urls'))
25 )