6fe13959a3
With a valid URL, a past donor can upgrade to a supporter by donating the rest of the amount. Django validates the data and, if it passes, puts it in the form. The JavaScript does most of the work from there.
11 lines
399 B
Python
11 lines
399 B
Python
from django.conf.urls import patterns
|
|
|
|
INDEX_VIEW = 'conservancy.apps.supporter.views.index'
|
|
pattern_pairs = [(r'^/?$', INDEX_VIEW)]
|
|
pattern_pairs.extend(
|
|
(r'^{}(?:\.html|/|)$'.format(basename), INDEX_VIEW)
|
|
for basename in ['index', '2015-supporter-appeal', '2016-supporter-appeal']
|
|
)
|
|
pattern_pairs.append((r'', 'conservancy.static.views.index'))
|
|
|
|
urlpatterns = patterns('', *pattern_pairs)
|