From d43ce1bdb278c021d18e9a5af26f68dc2711c7f1 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Mon, 26 Apr 2021 18:42:10 +0100 Subject: rename TUNNEL_DATA as DRAWINGS_DATA --- core/views/surveys.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/views/surveys.py') 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) -- cgit v1.2.3