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'^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'))