Skip to content
This repository has been archived by the owner on May 16, 2020. It is now read-only.

Commit

Permalink
using updated flask import syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Bibhas committed May 3, 2017
1 parent c7e23ae commit f5ae90b
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion alembic/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions hacknight/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down
2 changes: 1 addition & 1 deletion hacknight/forms/comment.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

import wtforms
from flask.ext.wtf import Form
from flask_wtf import Form

__all__ = ['CommentForm', 'DeleteCommentForm', 'ConfirmDeleteForm']

Expand Down
2 changes: 1 addition & 1 deletion hacknight/models/__init__.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion hacknight/models/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion hacknight/models/user.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion hacknight/views/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions hacknight/views/login.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f5ae90b

Please sign in to comment.