Mercurial > public > sg101
comparison gpp/news/urls.py @ 574:ddd69a8e07c7
For Django 1.4, use django.conf.urls instead of django.conf.urls.defaults.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 03 May 2012 20:45:16 -0500 |
parents | 1246a4f1ab4f |
children |
comparison
equal
deleted
inserted
replaced
573:bcc4e8cf841b | 574:ddd69a8e07c7 |
---|---|
1 """urls for the News application""" | 1 """urls for the News application""" |
2 from django.conf.urls.defaults import * | 2 from django.conf.urls import patterns, url |
3 | 3 |
4 urlpatterns = patterns('news.views', | 4 urlpatterns = patterns('news.views', |
5 url(r'^date/$', 'index', name='news-index_page'), | 5 url(r'^date/$', 'index', name='news-index_page'), |
6 url(r'^archive/$', 'archive_index', name='news-archive_index'), | 6 url(r'^archive/$', 'archive_index', name='news-archive_index'), |
7 url(r'^archive/(?P<year>\d{4})/(?P<month>\d\d?)/$', | 7 url(r'^archive/(?P<year>\d{4})/(?P<month>\d\d?)/$', |