]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - sommitrealweird/urls.py
Stop using an array as a cache key
[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/', include(admin.site.urls)),
26     (r'^blog/', include('blog.urls')),
27     (r'^photo/', include('photo.urls')),
28     (r'^photos/', include('photo.urls')),
29     (r'^css-doc/(?P<slug>.*)$', 'bpcms.views.css_view'),
30     (r'^feeds/rss/blog/', LatestBlogEntriesRss()),
31     (r'^feeds/blog/', LatestBlogEntries()),
32     (r'^comments/', include('django.contrib.comments.urls')),
33     (r'^(?:content/|)', include('bpcms.urls'))
34 )