Switch CCS upload, copyright assignment, FOSSY and podcast components to use path()
This is the newer approach to URL routing in Django.
This commit is contained in:
parent
aef9d18eb4
commit
ebb7866739
3 changed files with 9 additions and 9 deletions
|
@ -1,8 +1,8 @@
|
||||||
from django.conf.urls import url
|
from django.urls import path
|
||||||
|
|
||||||
from .views import AssignmentCreateView, AssignmentThanksView
|
from .views import AssignmentCreateView, AssignmentThanksView
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^$', AssignmentCreateView.as_view(), name='assignement-add'),
|
path('', AssignmentCreateView.as_view(), name='assignement-add'),
|
||||||
url(r'^(?P<pk>[\w-]+)/$', AssignmentThanksView.as_view(), name='assignment-thanks'),
|
path('<uuid:pk>/', AssignmentThanksView.as_view(), name='assignment-thanks'),
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
from django.conf.urls import url
|
from django.urls import path
|
||||||
|
|
||||||
from . import views
|
from . import views
|
||||||
|
|
||||||
app_name = "ccs_upload"
|
app_name = "ccs_upload"
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^$', views.upload, name='form')
|
path('', views.upload, name='form')
|
||||||
]
|
]
|
||||||
|
|
|
@ -62,10 +62,10 @@ urlpatterns = [
|
||||||
url(r'^sustainer/', include('conservancy.supporter.urls')),
|
url(r'^sustainer/', include('conservancy.supporter.urls')),
|
||||||
url(r'^coming-soon.html', static_views.index),
|
url(r'^coming-soon.html', static_views.index),
|
||||||
url(r'^fundraiser_data', fundgoal_views.view),
|
url(r'^fundraiser_data', fundgoal_views.view),
|
||||||
url(r'^ccs-upload/', include('conservancy.ccs_upload.urls', namespace='ccs_upload')),
|
path('ccs-upload/', include('conservancy.ccs_upload.urls', namespace='ccs_upload')),
|
||||||
url(r'^assignment/', include('conservancy.assignment.urls')),
|
path('assignment/', include('conservancy.assignment.urls')),
|
||||||
url(r'^fossy/$', static_views.index),
|
url(r'^fossy/$', static_views.index),
|
||||||
url(r'^fossy/', include('conservancy.fossy.urls')),
|
path('fossy/', include('conservancy.fossy.urls')),
|
||||||
url(r'^cast/', include('conservancy.podjango.urls')),
|
path('cast/', include('conservancy.podjango.urls')),
|
||||||
path('usethesource/', include('conservancy.usethesource.urls')),
|
path('usethesource/', include('conservancy.usethesource.urls')),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue