2017-11-03 15:47:21 +00:00
|
|
|
from django.conf.urls import url
|
2018-12-17 21:15:11 +00:00
|
|
|
from django.views.generic import TemplateView
|
2023-10-19 22:44:24 +00:00
|
|
|
|
|
|
|
from . import views as supp_views
|
|
|
|
from ...static import views as static_views
|
2016-12-02 17:50:21 +00:00
|
|
|
|
2017-11-03 15:47:21 +00:00
|
|
|
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
|
|
|
]
|
2017-11-03 15:47:21 +00:00
|
|
|
urlpatterns.extend(
|
|
|
|
url(r'^{}(?:\.html|/|)$'.format(basename), INDEX_VIEW)
|
2016-12-02 17:50:21 +00:00
|
|
|
for basename in ['index', '2015-supporter-appeal', '2016-supporter-appeal']
|
|
|
|
)
|
2017-11-03 15:47:21 +00:00
|
|
|
urlpatterns.append(url(r'', static_views.index))
|