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'