diff --git a/budget/api.py b/budget/api.py index 0c62b29..ec664b6 100644 --- a/budget/api.py +++ b/budget/api.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- from flask import Blueprint, request -from flask.ext.rest import RESTResource, need_auth +from flask_rest import RESTResource, need_auth from models import db, Project, Person, Bill from forms import (ProjectForm, EditProjectForm, MemberForm, diff --git a/budget/forms.py b/budget/forms.py index 4b59a36..77a5ec2 100644 --- a/budget/forms.py +++ b/budget/forms.py @@ -1,7 +1,7 @@ -from flask.ext.wtf import DateField, DecimalField, Email, Form, PasswordField, \ +from flask_wtf import DateField, DecimalField, Email, Form, PasswordField, \ Required, SelectField, SelectMultipleField, SubmitField, TextAreaField, \ TextField, ValidationError -from flask.ext.babel import lazy_gettext as _ +from flask_babel import lazy_gettext as _ from flask import request from wtforms.widgets import html_params diff --git a/budget/models.py b/budget/models.py index 3aac120..f894207 100644 --- a/budget/models.py +++ b/budget/models.py @@ -1,7 +1,7 @@ from collections import defaultdict from datetime import datetime -from flask.ext.sqlalchemy import SQLAlchemy, BaseQuery +from flask_sqlalchemy import SQLAlchemy, BaseQuery from flask import g from sqlalchemy import orm diff --git a/budget/run.py b/budget/run.py index 8f29f35..f006ae9 100644 --- a/budget/run.py +++ b/budget/run.py @@ -2,8 +2,8 @@ import os import warnings from flask import Flask, g, request, session -from flask.ext.babel import Babel -from flask.ext.migrate import Migrate, upgrade, stamp +from flask_babel import Babel +from flask_migrate import Migrate, upgrade, stamp from raven.contrib.flask import Sentry from web import main, db, mail diff --git a/budget/web.py b/budget/web.py index 87aef26..67ff31f 100644 --- a/budget/web.py +++ b/budget/web.py @@ -11,8 +11,8 @@ and `add_project_id` for a quick overview) from flask import Blueprint, current_app, flash, g, redirect, \ render_template, request, session, url_for -from flask.ext.mail import Mail, Message -from flask.ext.babel import get_locale, gettext as _ +from flask_mail import Mail, Message +from flask_babel import get_locale, gettext as _ from smtplib import SMTPRecipientsRefused import werkzeug from sqlalchemy import orm