From 1f5b56a5931666b1a6627a2ae83d3f846badbaf9 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Tue, 31 Jan 2023 17:13:41 +0000 Subject: Wallet editor into separate file --- urls.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'urls.py') diff --git a/urls.py b/urls.py index 744928b..72a7fc3 100644 --- a/urls.py +++ b/urls.py @@ -22,8 +22,8 @@ from troggle.core.views.other import (controlpanel, exportlogbook, frontpage, from troggle.core.views.prospect import prospecting from troggle.core.views.scans import (allscans, cavewallets, scansingle, walletslistperson, walletslistyear) -from troggle.core.views.uploads import dwgupload, photoupload, scanupload - +from troggle.core.views.uploads import dwgupload, photoupload +from troggle.core.views.wallets import walletedit """This sets the actualurlpatterns[] and urlpatterns[] lists which django uses to resolve urls - in both directions as these are declarative. @@ -87,8 +87,8 @@ trogglepatterns = [ re_path(r'^admin/', admin.site.urls), # includes admin login & logout urls # Uploads - uploading a file - path('scanupload/', scanupload, name='scanupload'), # path=2020#01 - path('scanupload/', scanupload, name='scanupload'), # path=2020#01 + path('walletedit/', walletedit, name='walletedit'), # path=2020#01 + path('walletedit/', walletedit, name='walletedit'), # path=2020#01 path('photoupload/', photoupload, name='photoupload'), # restricted to current year path('photoupload/', photoupload, name='photoupload'), # restricted to current year path('dwgupload/', dwgupload, name='dwgupload'), @@ -172,7 +172,7 @@ trogglepatterns = [ # The survey scans in the wallets. This short-cuts SCANS_URL which is not used anymore and is defunct path('survey_scans/', allscans, name="allscans"), # all the scans in all wallets - path('survey_scans//', scanupload, name="singlewallet"), # replaced singlewallet() + path('survey_scans//', walletedit, name="singlewallet"), # replaced singlewallet() path('survey_scans//', scansingle, name="scansingle"), # works, but html href goes direct to /expofiles/ too path('cave/scans/', cavewallets, name="cavewallets"), # like allscans, but for just one cave -- cgit v1.2.3