diff --git a/conservancy/urls.py b/conservancy/urls.py index f7c013957883c8d380273ef7abafbb3fb9916a20..b11113edce0dbc6ed7905756ca6452a63f115d48 100644 --- a/conservancy/urls.py +++ b/conservancy/urls.py @@ -18,7 +18,7 @@ # "AGPLv3". If not, see . from django.conf.urls import url -from django.urls import include, path +from django.urls import include, path, re_path from django.contrib import admin from . import feeds, frontpage, sponsors @@ -40,23 +40,23 @@ urlpatterns = [ url(r'^news/', include('conservancy.news.urls')), url(r'^blog/', include('conservancy.blog.urls')), # formerly static templated things... (dirs with templates) - url(r'^about', static_views.index), - url(r'^activities', static_views.index), - url(r'^donate', static_views.index), - url(r'^copyleft-compliance', static_views.index, {'fundraiser_sought': 'vmware-match-0'}), - url(r'^learn', static_views.index), - url(r'^press', static_views.index), - url(r'^projects', static_views.index), - url(r'^GiveUpGitHub', static_views.index), - url(r'^npoacct', static_views.index, {'fundraiser_sought': 'npoacct'}), + re_path(r'^about', static_views.index), + re_path(r'^activities', static_views.index), + re_path(r'^donate', static_views.index), + re_path(r'^copyleft-compliance', static_views.index, {'fundraiser_sought': 'vmware-match-0'}), + re_path(r'^learn', static_views.index), + re_path(r'^press', static_views.index), + re_path(r'^projects', static_views.index), + re_path(r'^GiveUpGitHub', static_views.index), + re_path(r'^npoacct', static_views.index, {'fundraiser_sought': 'npoacct'}), path('contractpatch/', include('conservancy.contractpatch.urls')), - url(r'^overview', static_views.index), - url(r'^privacy-policy', static_views.index), + re_path(r'^overview', static_views.index), + re_path(r'^privacy-policy', static_views.index), url(r'^sustainer/', include('conservancy.supporter.urls')), - url(r'^coming-soon.html', static_views.index), + re_path(r'^coming-soon.html', static_views.index), url(r'^fundraiser_data', fundgoal_views.view), path('assignment/', include('conservancy.assignment.urls')), - url(r'^fossy/$', static_views.index), + re_path(r'^fossy/$', static_views.index), path('fossy/', include('conservancy.fossy.urls')), path('casts/the-corresponding-source/', include('conservancy.podjango.urls')), path('usethesource/', include('conservancy.usethesource.urls')),