From f5ae90bafe1cf82db5959b755ac6fbf2eaee9ed2 Mon Sep 17 00:00:00 2001
From: Bibhas <iambibhas@gmail.com>
Date: Wed, 3 May 2017 16:03:47 +0530
Subject: [PATCH] using updated flask import syntax

---
 alembic/env.py               | 2 +-
 hacknight/__init__.py        | 8 ++++----
 hacknight/forms/comment.py   | 2 +-
 hacknight/models/__init__.py | 2 +-
 hacknight/models/event.py    | 2 +-
 hacknight/models/user.py     | 2 +-
 hacknight/views/event.py     | 2 +-
 hacknight/views/login.py     | 4 ++--
 8 files changed, 12 insertions(+), 12 deletions(-)

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/hacknight/__init__.py b/hacknight/__init__.py
index d3c19df..174a157 100644
--- a/hacknight/__init__.py
+++ b/hacknight/__init__.py
@@ -4,10 +4,10 @@
 
 from pytz import timezone
 from flask import Flask
-from flask.ext.lastuser import Lastuser
-from flask.ext.lastuser.sqlalchemy import UserManager
-from flask.ext.mail import Mail
-from flask.ext.assets import Environment, Bundle
+from flask_lastuser import Lastuser
+from flask_lastuser.sqlalchemy import UserManager
+from flask_mail import Mail
+from flask_assets import Environment, Bundle
 from baseframe import baseframe, assets, Version
 import coaster.app
 from ._version import __version__
diff --git a/hacknight/forms/comment.py b/hacknight/forms/comment.py
index a8f0945..4d0e42b 100644
--- a/hacknight/forms/comment.py
+++ b/hacknight/forms/comment.py
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 
 import wtforms
-from flask.ext.wtf import Form
+from flask_wtf import Form
 
 __all__ = ['CommentForm', 'DeleteCommentForm', 'ConfirmDeleteForm']
 
diff --git a/hacknight/models/__init__.py b/hacknight/models/__init__.py
index daebcb6..ec6bcf8 100644
--- a/hacknight/models/__init__.py
+++ b/hacknight/models/__init__.py
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-from flask.ext.sqlalchemy import SQLAlchemy
+from flask_sqlalchemy import SQLAlchemy
 from hacknight import app
 from coaster.sqlalchemy import BaseMixin, BaseNameMixin, BaseScopedNameMixin, BaseScopedIdNameMixin, BaseScopedIdMixin
 
diff --git a/hacknight/models/event.py b/hacknight/models/event.py
index 729ebb1..ab76fb8 100644
--- a/hacknight/models/event.py
+++ b/hacknight/models/event.py
@@ -5,7 +5,7 @@
 from datetime import datetime
 
 from flask import url_for, Markup
-from flask.ext.lastuser.sqlalchemy import ProfileMixin
+from flask_lastuser.sqlalchemy import ProfileMixin
 from sqlalchemy.orm import deferred
 from sqlalchemy import not_
 from hacknight.models import db, BaseNameMixin, BaseScopedNameMixin, BaseMixin
diff --git a/hacknight/models/user.py b/hacknight/models/user.py
index b757a22..31eed22 100644
--- a/hacknight/models/user.py
+++ b/hacknight/models/user.py
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 
 from flask import url_for
-from flask.ext.lastuser.sqlalchemy import UserBase
+from flask_lastuser.sqlalchemy import UserBase
 from hacknight.models import db
 from hacknight.models.event import Profile
 
diff --git a/hacknight/views/event.py b/hacknight/views/event.py
index 14ef2ce..f233d77 100644
--- a/hacknight/views/event.py
+++ b/hacknight/views/event.py
@@ -3,7 +3,7 @@
 from sqlalchemy.orm import joinedload
 from sqlalchemy import func
 from html2text import html2text
-from flask.ext.mail import Message
+from flask_mail import Message
 from flask import render_template, abort, flash, url_for, g, request, Markup, current_app, Response, stream_with_context
 from coaster.views import load_model, load_models
 from baseframe.forms import render_redirect, render_form, render_delete_sqla
diff --git a/hacknight/views/login.py b/hacknight/views/login.py
index ef354ff..f187834 100644
--- a/hacknight/views/login.py
+++ b/hacknight/views/login.py
@@ -1,8 +1,8 @@
 # -*- coding: utf-8 -*-
 
 from flask import Response, redirect, flash, g
-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 coaster.views import get_next_url
 
 from hacknight import app, lastuser