From 0e374cd5e0ef5a9be67084365f91de2ab84f636c Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Wed, 28 Jun 2017 21:36:02 +0200 Subject: Make all imports relative (#229) * Make all imports relative * Change the way the application runs in the Makefile * Import the default settings relatively * Fix manage.py imports --- budget/run.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'budget/run.py') diff --git a/budget/run.py b/budget/run.py index 7fe4e24..5e65c90 100644 --- a/budget/run.py +++ b/budget/run.py @@ -7,12 +7,12 @@ from flask_babel import Babel from flask_migrate import Migrate, upgrade, stamp from raven.contrib.flask import Sentry -from web import main, db, mail -from api import api -from utils import PrefixedWSGI -from utils import minimal_round +from .web import main, db, mail +from .api import api +from .utils import PrefixedWSGI +from .utils import minimal_round -import default_settings +from . import default_settings app = Flask(__name__, instance_path='/etc/ihatemoney', instance_relative_config=True) -- cgit v1.1