From 15ce31eedbb301ba3dd5fcd1a26b3eadc17498e9 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Fri, 20 Oct 2023 09:54:35 +1100 Subject: [PATCH] Further switch to relative imports --- www/conservancy/apps/supporter/views.py | 4 ++-- www/conservancy/static/views.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/www/conservancy/apps/supporter/views.py b/www/conservancy/apps/supporter/views.py index b00f6e56..718e9d91 100644 --- a/www/conservancy/apps/supporter/views.py +++ b/www/conservancy/apps/supporter/views.py @@ -1,10 +1,10 @@ from django.shortcuts import render -import conservancy +from ... import ParameterValidator def index(request): - with conservancy.ParameterValidator(request.GET, 'upgrade_id') as validator: + with ParameterValidator(request.GET, 'upgrade_id') as validator: try: amount_param = float(request.GET['upgrade']) except (KeyError, ValueError): diff --git a/www/conservancy/static/views.py b/www/conservancy/static/views.py index 34037a32..54b8f5f6 100644 --- a/www/conservancy/static/views.py +++ b/www/conservancy/static/views.py @@ -4,7 +4,7 @@ import os.path from django.http import HttpResponse from django.template.response import TemplateResponse -from conservancy.local_context_processors import fundgoal_lookup +from ..local_context_processors import fundgoal_lookup STATIC_ROOT = os.path.abspath(os.path.dirname(__file__)) FILESYSTEM_ENCODING = 'utf-8'