Changeset - 922afef356db
[Not reviewed]
0 1 0
Ben Sturmfels (bsturmfels) - 1 month ago 2024-03-18 07:17:09
ben@sturm.com.au
Switch from `url` to `re_path` for static views
1 file changed with 14 insertions and 14 deletions:
0 comments (0 inline, 0 general)
conservancy/urls.py
Show inline comments
...
 
@@ -18,7 +18,7 @@
 
# "AGPLv3".  If not, see <http://www.gnu.org/licenses/>.
 

	
 
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')),
0 comments (0 inline, 0 general)