diff --git a/alembic/env.py b/alembic/env.py index bad6e54..c95032c 100644 --- a/alembic/env.py +++ b/alembic/env.py @@ -3,7 +3,7 @@ from alembic.config import Config from sqlalchemy import engine_from_config, pool from logging.config import fileConfig -from flask.ext.alembic import FlaskAlembicConfig +from flask_alembic import FlaskAlembicConfig # this is the Alembic Config object, which provides # access to the values within the .ini file in use. diff --git a/hasnew/__init__.py b/hasnew/__init__.py index d930beb..a6a670b 100644 --- a/hasnew/__init__.py +++ b/hasnew/__init__.py @@ -3,8 +3,8 @@ # The imports in this file are order-sensitive from __future__ import absolute_import from flask import Flask -from flask.ext.lastuser import Lastuser -from flask.ext.lastuser.sqlalchemy import UserManager +from flask_lastuser import Lastuser +from flask_lastuser.sqlalchemy import UserManager from baseframe import baseframe, assets, Version import coaster.app diff --git a/hasnew/forms/post.py b/hasnew/forms/post.py index 64b86b6..f7d840f 100644 --- a/hasnew/forms/post.py +++ b/hasnew/forms/post.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -import flask.ext.wtf as wtf +import flask_wtf as wtf from baseframe.forms import Form __all__ = ['PostForm'] diff --git a/hasnew/models/__init__.py b/hasnew/models/__init__.py index 8426110..bf209f4 100644 --- a/hasnew/models/__init__.py +++ b/hasnew/models/__init__.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import -from flask.ext.sqlalchemy import SQLAlchemy -from flask.ext.commentease import Commentease +from flask_sqlalchemy import SQLAlchemy +from flask_commentease import Commentease from .. import app db = SQLAlchemy(app) diff --git a/hasnew/models/post.py b/hasnew/models/post.py index 8c70011..a55cf4a 100644 --- a/hasnew/models/post.py +++ b/hasnew/models/post.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from flask import Markup, url_for -from flask.ext.commentease import VotingMixin, CommentingMixin +from flask_commentease import VotingMixin, CommentingMixin from coaster.sqlalchemy import TimestampMixin, BaseScopedIdNameMixin from coaster.gfm import markdown from . import db diff --git a/manage.py b/manage.py index aa4a76c..4f2a632 100755 --- a/manage.py +++ b/manage.py @@ -1,8 +1,8 @@ #!/usr/bin/env python -from flask.ext.script import Manager, Server, Option, prompt_bool -from flask.ext.script.commands import Clean, ShowUrls -from flask.ext.alembic import ManageMigrations +from flask_script import Manager, Server, Option, prompt_bool +from flask_script.commands import Clean, ShowUrls +from flask_alembic import ManageMigrations from hasnew import app, init_for from hasnew import models