summaryrefslogtreecommitdiffstats
path: root/urls.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2020-06-06 22:51:55 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2020-06-06 22:51:55 +0100
commitfda50ed570c886966b056d303965104275221667 (patch)
treeca4c0de89f887fcf9fdeaba2f07870310d0d9d82 /urls.py
parentf8a3c8f5bca6e0e99a48a0ebe8577312ad84f56d (diff)
downloadtroggle-fda50ed570c886966b056d303965104275221667.tar.gz
troggle-fda50ed570c886966b056d303965104275221667.tar.bz2
troggle-fda50ed570c886966b056d303965104275221667.zip
attempt to simplify wnt horribly wrong
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/urls.py b/urls.py
index c1917f1..7d28763 100644
--- a/urls.py
+++ b/urls.py
@@ -42,6 +42,7 @@ actualurlpatterns = patterns('',
url(r'^newfile', views_other.newFile, name="newFile"), # oddly broken, needs investigating more
url(r'^getEntrances/(?P<caveslug>.*)', views_caves.get_entrances, name = "get_entrances"), #works
+ # e.g. /getEntrances/1623-161
url(r'^getQMs/(?P<caveslug>.*)', views_caves.get_qms, name = "get_qms"), # no template "get_qms"?
url(r'^getPeople/(?P<expeditionslug>.*)', views_logbooks.get_people, name = "get_people"), # fails
url(r'^getLogBookEntries/(?P<expeditionslug>.*)', views_logbooks.get_logbook_entries, name = "get_logbook_entries"), #works
@@ -121,7 +122,8 @@ actualurlpatterns = patterns('',
#(r'^survey_scans/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.SURVEY_SCANS, 'show_indexes':True}),
url(r'^survey_scans/$', view_surveys.surveyscansfolders, name="surveyscansfolders"),
- url(r'^survey_scans/(?P<path>[^/]+)/$', view_surveys.surveyscansfolder, name="surveyscansfolder"),
+ url(r'^survey_scans/(?P<path>[^/]+)/$', view_surveys.surveyscansfolder, name="surveyscansfolder"),
+ # This next line is beyond daft. If anyone uploads a file *anywhere* in SURVEY_SCANS which doesn't match, troggle crashes horribly. Has been failing for pdf and JPG files for years:
url(r'^survey_scans/(?P<path>[^/]+)/(?P<file>[^/]+(?:png|jpg|pdf|jpeg|PNG|JPG|PDF|JPEG))$',
view_surveys.surveyscansingle, name="surveyscansingle"),