From 922afef356db4f613d177bc5ed30c46d29ac25bc Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Mon, 18 Mar 2024 18:17:09 +1100 Subject: [PATCH] Switch from `url` to `re_path` for static views --- conservancy/urls.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/conservancy/urls.py b/conservancy/urls.py index f7c01395..b11113ed 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')),