2017-11-03 15:47:21 +00:00
|
|
|
from django.conf.urls import url
|
|
|
|
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
|
|
|
|
urlpatterns = [url(r'^/?$', INDEX_VIEW)]
|
|
|
|
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))
|