Mercurial > public > sg101
comparison potd/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 POTD application. | 2 URLs for the POTD application. |
3 """ | 3 """ |
4 from django.conf.urls import patterns, url | 4 from django.conf.urls import url |
5 | 5 |
6 urlpatterns = patterns('potd.views', | 6 import potd.views |
7 url(r'^$', 'view', name='potd-view'), | 7 |
8 url(r'^archive/(\d+)/$', 'archive', name='potd-archive'), | 8 |
9 ) | 9 urlpatterns = [ |
10 url(r'^$', potd.views.view, name='potd-view'), | |
11 url(r'^archive/(\d+)/$', potd.views.archive, name='potd-archive'), | |
12 ] |