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