2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-17 07:07:18 +00:00

re-enable /map/tools/

This commit is contained in:
2023-11-14 19:43:49 +02:00
parent 680477d2d5
commit 7b67eb52dc
3 changed files with 6 additions and 2 deletions

View File

@@ -68,6 +68,7 @@ def map(request):
def mapfile(request, path):
"""Serves unadorned file: everything in the /map/... folder tree"""
fn = Path(settings.EXPOWEB, "map", path)
print(f"MAP cuttout. \n{path=}\n{fn=} mime:{getmimetype(fn)}")
return HttpResponse(content=open(fn, "r"), content_type=getmimetype(fn))