summaryrefslogtreecommitdiffstats
path: root/urls.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2020-07-28 01:22:06 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2020-07-28 01:22:06 +0100
commit0094cf7054c839d5ff62e970c85e2de3f4c6334d (patch)
tree0ca5a1c39a41b338b07259a619c22040a4678cb3 /urls.py
parentd4c79ab66ba6ad817e45bed20a6159370ba2305a (diff)
downloadtroggle-0094cf7054c839d5ff62e970c85e2de3f4c6334d.tar.gz
troggle-0094cf7054c839d5ff62e970c85e2de3f4c6334d.tar.bz2
troggle-0094cf7054c839d5ff62e970c85e2de3f4c6334d.zip
clean troggle menu and drawingfiles layout
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/urls.py b/urls.py
index 227b4ef..8d20f68 100644
--- a/urls.py
+++ b/urls.py
@@ -23,6 +23,8 @@ url( <regular expression that matches the thing in the web browser>,
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<year>\d\d\d\d)\.(?P<extension>.*)/?$',views_other.downloadLogbook),
url(r'^logbook/?$',views_other.downloadLogbook, name="downloadlogbook"),
- url(r'^cave/(?P<cave_id>[^/]+)/qm\.csv/?$', views_other.downloadQMs, name="downloadqms"),
+ url(r'^cave/(?P<cave_id>[^/]+)/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/).