1 from django.conf.urls.defaults import *
2 from settings import MEDIA_ROOT, MEDIA_URL
3 from blog.feeds import LatestBlogEntries
4 from django.contrib import admin
6 handler404 = 'generic.views.render_404'
9 'blog': LatestBlogEntries,
14 urlpatterns = patterns('',
16 # (r'^sommitrealweird/', include('sommitrealweird.foo.urls')),
18 # Uncomment this for admin:
19 (r'^$', 'bpcms.views.document_view', {'slug': 'index'}),
20 (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': MEDIA_ROOT, 'show_indexes': True}),
21 (r'^admin/(.*)$', admin.site.root),
22 (r'^blog/', include('blog.urls')),
23 (r'^feeds/(?P<url>.*)/', 'django.contrib.syndication.views.feed', {'feed_dict': feeds_dict}),
24 (r'^(?:content/|)', include('bpcms.urls'))