From 56c3517328e32e64d2f0e16f3bbe811e53896a85 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Tue, 4 May 2021 14:16:48 +0100 Subject: fixed url ambiguity by rename --- urls.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'urls.py') diff --git a/urls.py b/urls.py index 1d5c9c9..f3092a8 100644 --- a/urls.py +++ b/urls.py @@ -10,7 +10,7 @@ from django.urls import reverse, resolve from troggle.core.views import caves, statistics, survex from troggle.core.views.scans import scansingle, singlewallet, allwallets -from troggle.core.views.drawings import dwgdata, dwgfilesingle +from troggle.core.views.drawings import dwgallfiles, dwgfilesingle from troggle.core.views.drawings import dwgfileupload from troggle.core.views.other import dwgupload from troggle.core.views.other import troggle404, frontpage, todos, controlpanel, frontpage, scanupload @@ -81,8 +81,9 @@ trogglepatterns = [ re_path(r'^admin/doc/', include('django.contrib.admindocs.urls')), # needs docutils Python module (http://docutils.sf.net/). re_path(r'^admin/', admin.site.urls), # includes admin login & logout urls - path('scanupload/', scanupload, name='scanupload'), - path('dwgupload/', dwgupload, name='dwgupload'), +# Uploads - uploading a file + path('scanupload/', scanupload, name='scanupload'), # wallet=2020#01, not a path + path('dwgupload/', dwgupload, name='dwgupload'), path('dwgupload/', dwgupload, name='dwgupload'), # setting LOGIN_URL = '/accounts/login/' is default @@ -157,12 +158,9 @@ trogglepatterns = [ path('survey_scans//', scansingle, name="scansingle"), # The tunnel and therion drawings files pages - re_path(r'^dwgdata/$', dwgdata, name="dwgdata"), - re_path(r'^dwgdataraw/(?P.+?\.xml)$', dwgfilesingle, name="dwgfilesingle"), - re_path(r'^dwgdataraw/(?P.+?\.th)$', dwgfilesingle, name="dwgfilesingle"), - re_path(r'^dwgdataraw/(?P.+?\.th2)$', dwgfilesingle, name="dwgfilesingle"), -# re_path(r'^dwgdatainfo/(?P.+?\.xml)$', dwgfileinfo, name="dwgfileinfo"), # parses tunnel for info & ref to wallet -# re_path(r'^dwgdataraw/(?P.+?\.xml)/upload$', dwgfileupload, name="dwgfileupload"), # Not working + path('dwgfiles', dwgallfiles, name="dwgallfiles"), + path('dwgdataraw/', dwgfilesingle, name="dwgfilesingle"), +# path('dwgdataraw//upload', dwgfileupload, name="dwgfileupload"), # Not working # QMs pages - must precede other /caves pages? -- cgit v1.2.3