Files @ 6fe13959a3b3
Branch filter:

Location: website/www/conservancy/apps/supporter/urls.py

brett
supporter: Support donors upgrading to supporters.

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.
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)