]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - sommitrealweird/urls.py
6106b9f61afdb47f47c7b6f5ca6ef76ba1311f8e
[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'^photos/', include('photo.urls')),
29     (r'^css-doc/(?P<slug>.*)$', 'bpcms.views.css_view'),
30     (r'^feeds/rss/(?P<url>.*)/', 'django.contrib.syndication.views.feed', {'feed_dict': rssfeeds_dict}),
31     (r'^feeds/(?P<url>.*)/', 'django.contrib.syndication.views.feed', {'feed_dict': feeds_dict}),
32     (r'^comments/', include('django.contrib.comments.urls')),
33     (r'^(?:content/|)', include('bpcms.urls'))
34 )