Mercurial > public > sg101
comparison podcast/urls.py @ 1028:5ba2508939f7
Django 1.8 changes; first batch.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 15 Dec 2015 21:01:07 -0600 |
parents | ee87ea74d46b |
children |
comparison
equal
deleted
inserted
replaced
1027:cd4db27c90e3 | 1028:5ba2508939f7 |
---|---|
1 """ | 1 """ |
2 urls for the podcast application | 2 urls for the podcast application |
3 | 3 |
4 """ | 4 """ |
5 from django.conf.urls import patterns, url | 5 from django.conf.urls import url |
6 from django.views.decorators.cache import cache_page | 6 from django.views.decorators.cache import cache_page |
7 | 7 |
8 from podcast.views import feed | 8 import podcast.views |
9 | 9 |
10 | 10 |
11 urlpatterns = patterns('podcast.views', | 11 urlpatterns = [ |
12 url(r'^$', 'index', name='podcast-main'), | 12 url(r'^$', podcast.views.index, name='podcast-main'), |
13 url(r'^(\d+)/$', 'detail', name='podcast-detail'), | 13 url(r'^(\d+)/$', podcast.views.detail, name='podcast-detail'), |
14 url(r'^feed.xml/$', cache_page(3600)(feed), name='podcast-feed'), | 14 url(r'^feed.xml/$', cache_page(3600)(podcast.views.feed), name='podcast-feed'), |
15 ) | 15 ] |