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