]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - sommitrealweird/urls.py
38f78a1a173a99f65e125812002209badc4703e4
[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 )