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
6 handler404 = 'generic.views.render_404'
9 'blog': LatestBlogEntries,
13 'blog': LatestBlogEntriesRss,
18 urlpatterns = patterns('',
20 # (r'^sommitrealweird/', include('sommitrealweird.foo.urls')),
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'))