]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - sommitrealweird/urls.py
0a4b5f3a2c36d9d27e9eb3b446b3812f8a7b7550
[sommitrealweird.git] / sommitrealweird / urls.py
1 from django.conf.urls import include, url
2 from django.conf.urls.static import static
3 import bpcms.views
4 import django.views.static
5 from settings import MEDIA_ROOT, MEDIA_URL, STATIC_URL
6 from blog.feeds import LatestBlogEntries, LatestBlogEntriesRss
7 from django.contrib import admin
8
9 handler404 = 'generic.views.render_404'
10
11 feeds_dict = {
12     'blog': LatestBlogEntries,
13     }
14
15 rssfeeds_dict = {
16     'blog': LatestBlogEntriesRss,
17     }
18
19 admin.autodiscover()
20
21 urlpatterns = [
22     # Example:
23     # (r'^sommitrealweird/', include('sommitrealweird.foo.urls')),
24
25     # Uncomment this for admin:
26     url(r'^$', bpcms.views.document_view, {'slug': 'index'}),
27     url(r'^media/(?P<path>.*)$', django.views.static.serve, {'document_root': MEDIA_ROOT, 'show_indexes': True}),
28     url(r'^admin/', include(admin.site.urls)),
29     url(r'^blog/', include('blog.urls')),
30     url(r'^photo/', include('photo.urls')),
31     #url(r'^photos/', include('photo.urls')),
32     url(r'^css-doc/(?P<slug>.*)$', bpcms.views.css_view),
33     url(r'^feeds/rss/blog/', LatestBlogEntriesRss()),
34     url(r'^feeds/blog/', LatestBlogEntries()),
35     url(r'^', include('bpcms.urls'))
36 ] + static(STATIC_URL, document_root=MEDIA_ROOT)