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
|
2017-11-03 15:47:21 +00:00
|
|
|
from conservancy.apps.supporter import views as supp_views
|
|
|
|
from conservancy.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 = [
|
|
|
|
url(r'^/?$', INDEX_VIEW),
|
|
|
|
url(r'^/banners?/?$', TemplateView.as_view(template_name='supporter/banners.html')),
|
|
|
|
]
|
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))
|