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