diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2021-04-16 21:29:32 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2021-04-16 21:29:32 +0100 |
commit | eca0bcc6d837aede8b30dc0a9f5c714c83b5d756 (patch) | |
tree | 038e620bcfd660d168192bd55b061d4c8ac518af | |
parent | fa1df39923d9ce5e1c134dec987c8665ce22c5de (diff) | |
download | troggle-eca0bcc6d837aede8b30dc0a9f5c714c83b5d756.tar.gz troggle-eca0bcc6d837aede8b30dc0a9f5c714c83b5d756.tar.bz2 troggle-eca0bcc6d837aede8b30dc0a9f5c714c83b5d756.zip |
oops
-rw-r--r-- | core/views/expo.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/views/expo.py b/core/views/expo.py index 84f979c..42ca8a2 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -54,6 +54,18 @@ def expofiles_redirect(request, path): ''' return redirect(urljoin('http://expo.survex.com/expofiles/', path)) +def map(request): + '''Serves unadorned the expoweb/map/map.html file + ''' + fn = Path(settings.EXPOWEB, 'map', 'map.html') + return HttpResponse(content=open(fn, "r"),content_type='text/html') + +def mapfile(request, path): + '''Serves unadorned file + ''' + fn = Path(settings.EXPOWEB, 'map', path) + return HttpResponse(content=open(fn, "r"),content_type=getmimetype(fn)) + def expofilessingle(request, filepath): '''sends a single binary file to the user, if not found, show the parent directory If the path actually is a directory, then show that. |