1 from django.conf.urls import include, url
2 from django.conf.urls.static import static
3 from settings import MEDIA_ROOT, MEDIA_URL
4 from blog.feeds import LatestBlogEntries, LatestBlogEntriesRss
5 from django.contrib import admin
7 handler404 = 'generic.views.render_404'
10 'blog': LatestBlogEntries,
14 'blog': LatestBlogEntriesRss,
21 # (r'^sommitrealweird/', include('sommitrealweird.foo.urls')),
23 # Uncomment this for admin:
24 url(r'^$', 'bpcms.views.document_view', {'slug': 'index'}),
25 url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': MEDIA_ROOT, 'show_indexes': True}),
26 url(r'^admin/', include(admin.site.urls)),
27 url(r'^blog/', include('blog.urls')),
28 url(r'^photo/', include('photo.urls')),
29 #url(r'^photos/', include('photo.urls')),
30 url(r'^css-doc/(?P<slug>.*)$', 'bpcms.views.css_view'),
31 url(r'^feeds/rss/blog/', LatestBlogEntriesRss()),
32 url(r'^feeds/blog/', LatestBlogEntries()),
33 url(r'^comments/', include('django.contrib.comments.urls')),
34 url(r'^', include('bpcms.urls'))
35 ] + static(MEDIA_URL, MEDIA_ROOT)