Mercurial > public > sg101
comparison gpp/smiley/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 | 3ae999b0c53b |
children |
comparison
equal
deleted
inserted
replaced
573:bcc4e8cf841b | 574:ddd69a8e07c7 |
---|---|
1 """ | 1 """ |
2 Urls for the Smiley application. | 2 Urls for the Smiley application. |
3 """ | 3 """ |
4 | 4 |
5 from django.conf.urls.defaults import * | 5 from django.conf.urls import patterns, url |
6 | 6 |
7 urlpatterns = patterns('smiley.views', | 7 urlpatterns = patterns('smiley.views', |
8 url(r'^farm/$', 'farm', name='smiley-farm'), | 8 url(r'^farm/$', 'farm', name='smiley-farm'), |
9 url(r'^farm/extra/$', 'farm', kwargs={'extra': True}, name='smiley-farm_extra'), | 9 url(r'^farm/extra/$', 'farm', kwargs={'extra': True}, name='smiley-farm_extra'), |
10 ) | 10 ) |