aboutsummaryrefslogtreecommitdiff
path: root/budget/web.py
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2017-06-28 21:36:02 +0200
committerGitHub <noreply@github.com>2017-06-28 21:36:02 +0200
commit0e374cd5e0ef5a9be67084365f91de2ab84f636c (patch)
treed6b512090f6cadb9369596af666ef1bf198b63b7 /budget/web.py
parent603ac10d6eb485c9a95f253a14d4967f4aafbfa3 (diff)
downloadihatemoney-mirror-0e374cd5e0ef5a9be67084365f91de2ab84f636c.zip
ihatemoney-mirror-0e374cd5e0ef5a9be67084365f91de2ab84f636c.tar.gz
ihatemoney-mirror-0e374cd5e0ef5a9be67084365f91de2ab84f636c.tar.bz2
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
Diffstat (limited to 'budget/web.py')
-rw-r--r--budget/web.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/budget/web.py b/budget/web.py
index f4961cb..ba77124 100644
--- a/budget/web.py
+++ b/budget/web.py
@@ -9,8 +9,10 @@ some shortcuts to make your life better when coding (see `pull_project`
and `add_project_id` for a quick overview)
"""
-from flask import Blueprint, current_app, flash, g, redirect, \
- render_template, request, session, url_for, send_file
+from flask import (
+ Blueprint, current_app, flash, g, redirect, render_template, request,
+ session, url_for, send_file
+)
from flask_mail import Mail, Message
from flask_babel import get_locale, gettext as _
from werkzeug.security import generate_password_hash, \
@@ -20,12 +22,13 @@ import werkzeug
from sqlalchemy import orm
from functools import wraps
-# local modules
-from models import db, Project, Person, Bill
-from forms import AdminAuthenticationForm, AuthenticationForm, EditProjectForm, \
- InviteForm, MemberForm, PasswordReminder, ProjectForm, get_billform_for, \
+from .models import db, Project, Person, Bill
+from .forms import (
+ AdminAuthenticationForm, AuthenticationForm, EditProjectForm,
+ InviteForm, MemberForm, PasswordReminder, ProjectForm, get_billform_for,
ExportForm
-from utils import Redirect303, list_of_dicts2json, list_of_dicts2csv
+)
+from .utils import Redirect303, list_of_dicts2json, list_of_dicts2csv
main = Blueprint("main", __name__)
mail = Mail()