website/www/supporter/urls.py

17 lines
532 B
Python
Raw Normal View History

from django.conf.urls import url
2018-12-17 21:15:11 +00:00
from django.views.generic import TemplateView
from . import views as supp_views
from ..static import views as static_views
INDEX_VIEW = supp_views.index
2018-12-17 21:15:11 +00:00
urlpatterns = [
2021-12-17 06:27:26 +00:00
url(r'^$', INDEX_VIEW),
url(r'^banners?/?$', TemplateView.as_view(template_name='supporter/banners.html')),
2018-12-17 21:15:11 +00:00
]
urlpatterns.extend(
url(r'^{}(?:\.html|/|)$'.format(basename), INDEX_VIEW)
for basename in ['index', '2015-supporter-appeal', '2016-supporter-appeal']
)
urlpatterns.append(url(r'', static_views.index))