debugging

This commit is contained in:
Martin Green 2022-06-18 23:26:37 +01:00
parent 845e70465e
commit 328347f8af

View File

@ -223,6 +223,7 @@ def expopage(request, path):
filetobeopened = os.path.normpath(expowebpath / path)
try:
t = type(filetobeopened)
content = open(filetobeopened, "rb")
content_type=getmimetype(path)
return HttpResponse(content = content, content_type=content_type)