From 0094cf7054c839d5ff62e970c85e2de3f4c6334d Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Tue, 28 Jul 2020 01:22:06 +0100 Subject: clean troggle menu and drawingfiles layout --- urls.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'urls.py') diff --git a/urls.py b/urls.py index 227b4ef..8d20f68 100644 --- a/urls.py +++ b/urls.py @@ -23,6 +23,8 @@ url( , Django also provides the reverse function: given an an object, provide the URL which is vital to writing code for the webapp. So the URL dispatch is declarative. + +The API urls return TSV or JSON and are new in July 2020. """ admin.autodiscover() @@ -33,7 +35,7 @@ admin.autodiscover() actualurlpatterns = [ url(r'^troggle$', views_other.frontpage, name="frontpage"), url(r'^caves$', views_caves.caveindex, name="caveindex"), - url(r'^indxal.htm$', views_caves.caveindex, name="caveindex"), # ~420 hrefs to this in expoweb files + url(r'^indxal.htm$', views_caves.caveindex, name="caveindex"), # ~420 hrefs to this url in expoweb files url(r'^people/?$', views_logbooks.personindex, name="personindex"), url(r'^newqmnumber/?$', views_other.ajax_QM_number, ), @@ -86,7 +88,7 @@ actualurlpatterns = [ url(r'^controlpanel/?$', views_other.controlPanel, name="controlpanel"), url(r'^logbook(?P\d\d\d\d)\.(?P.*)/?$',views_other.downloadLogbook), url(r'^logbook/?$',views_other.downloadLogbook, name="downloadlogbook"), - url(r'^cave/(?P[^/]+)/qm\.csv/?$', views_other.downloadQMs, name="downloadqms"), + url(r'^cave/(?P[^/]+)/qm\.csv/?$', views_other.downloadQMs, name="downloadqms"), url(r'^downloadqms$', views_other.downloadQMs), url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # needs docutils Python module (http://docutils.sf.net/). -- cgit v1.2.3