Mercurial > public > sg101
comparison donations/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 | 75189bd9c4ba |
comparison
equal
deleted
inserted
replaced
1027:cd4db27c90e3 | 1028:5ba2508939f7 |
---|---|
1 """ | 1 """ |
2 URLs for the donations application. | 2 URLs for the donations application. |
3 """ | 3 """ |
4 from django.conf.urls import patterns, url | 4 from django.conf.urls import url |
5 from django.views.generic import TemplateView | 5 from django.views.generic import TemplateView |
6 | 6 |
7 urlpatterns = patterns('donations.views', | 7 import donations.views |
8 url(r'^$', 'index', name='donations-index'), | 8 |
9 url(r'^ipn/$', 'ipn', name='donations-ipn'), | 9 |
10 ) | 10 urlpatterns = [ |
11 urlpatterns += patterns('', | 11 url(r'^$', donations.views.index, name='donations-index'), |
12 url(r'^ipn/$', donations.views.ipn, name='donations-ipn'), | |
12 url(r'^thanks/$', TemplateView.as_view(template_name='donations/thanks.html'), | 13 url(r'^thanks/$', TemplateView.as_view(template_name='donations/thanks.html'), |
13 name='donations-thanks'), | 14 name='donations-thanks'), |
14 ) | 15 ] |