comparison gpp/donations/urls.py @ 36:296b610ee507

Added IPN logic to the donations module. Added a thank-you view. Need to add logging to the IPN function.
author Brian Neal <bgneal@gmail.com>
date Thu, 11 Jun 2009 00:54:44 +0000
parents f77a1cdd7a46
children b1c39788e511
comparison
equal deleted inserted replaced
35:f77a1cdd7a46 36:296b610ee507
4 from django.conf.urls.defaults import * 4 from django.conf.urls.defaults import *
5 5
6 urlpatterns = patterns('donations.views', 6 urlpatterns = patterns('donations.views',
7 url(r'^$', 'index', name='donations-index'), 7 url(r'^$', 'index', name='donations-index'),
8 url(r'^ipn/$', 'ipn', name='donations-ipn'), 8 url(r'^ipn/$', 'ipn', name='donations-ipn'),
9 url(r'^thanks/$', 'thanks', name='donations-thanks'),
10 ) 9 )
10 urlpatterns += patterns('django.views.generic.simple',
11 (r'^thanks/$', 'direct_to_template',
12 {'template': 'donations/thanks.html'}, 'donations-thanks')
13 )