summaryrefslogtreecommitdiffstats
path: root/core/views/surveys.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/views/surveys.py')
-rw-r--r--core/views/surveys.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/views/surveys.py b/core/views/surveys.py
index d2d2fac..c54d6de 100644
--- a/core/views/surveys.py
+++ b/core/views/surveys.py
@@ -64,7 +64,7 @@ def dwgfilesingle(request, path):
message = f'Drawing file error or not found \'{path}\' .'
return render(request, 'errors/generic.html', {'message': message})
- tfile = Path(settings.TUNNEL_DATA, dwgfile.dwgpath)
+ tfile = Path(settings.DRAWINGS_DATA, dwgfile.dwgpath)
try: # for display not download
return HttpResponse(content=open(tfile, errors='strict'), content_type="text/xhtml")
except UnicodeDecodeError:
@@ -86,7 +86,7 @@ def dwgfileupload(request, path):
except:
message = f'Drawing file error or not found \'{path}\' .'
return render(request, 'errors/generic.html', {'message': message})
- tfile = Path(settings.TUNNEL_DATA, dwgfile.dwgpath)
+ tfile = Path(settings.DRAWINGS_DATA, dwgfile.dwgpath)
project, user, password, tunnelversion = request.POST["tunnelproject"], request.POST["tunneluser"], request.POST["tunnelpassword"], request.POST["tunnelversion"]
print(project, user, tunnelversion)