Switch from url
to re_path
for static views
This commit is contained in:
parent
fc308958fa
commit
922afef356
1 changed files with 14 additions and 14 deletions
|
@ -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')),
|
||||
|
|
Loading…
Reference in a new issue