Further switch to relative imports

This commit is contained in:
Ben Sturmfels 2023-10-20 09:54:35 +11:00
parent 47a30a750a
commit 15ce31eedb
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0
2 changed files with 3 additions and 3 deletions

View file

@ -1,10 +1,10 @@
from django.shortcuts import render from django.shortcuts import render
import conservancy from ... import ParameterValidator
def index(request): def index(request):
with conservancy.ParameterValidator(request.GET, 'upgrade_id') as validator: with ParameterValidator(request.GET, 'upgrade_id') as validator:
try: try:
amount_param = float(request.GET['upgrade']) amount_param = float(request.GET['upgrade'])
except (KeyError, ValueError): except (KeyError, ValueError):

View file

@ -4,7 +4,7 @@ import os.path
from django.http import HttpResponse from django.http import HttpResponse
from django.template.response import TemplateResponse 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__)) STATIC_ROOT = os.path.abspath(os.path.dirname(__file__))
FILESYSTEM_ENCODING = 'utf-8' FILESYSTEM_ENCODING = 'utf-8'