comparison smiley/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 Smiley application. 2 Urls for the Smiley application.
3 """ 3 """
4 from django.conf.urls import url
4 5
5 from django.conf.urls import patterns, url 6 import smiley.views
6 7
7 urlpatterns = patterns('smiley.views', 8
8 url(r'^farm/$', 'farm', name='smiley-farm'), 9 urlpatterns = [
9 url(r'^farm/extra/$', 'farm', kwargs={'extra': True}, name='smiley-farm_extra'), 10 url(r'^farm/$', smiley.views.farm, name='smiley-farm'),
10 ) 11 url(r'^farm/extra/$', smiley.views.farm, kwargs={'extra': True}, name='smiley-farm_extra'),
12 ]