Skip to content

Change flask.ext.* to flask_*. fix #3. #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import os
import coverage

from flask.ext.script import Manager
from flask.ext.migrate import Migrate, MigrateCommand
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand

from project import app, db

Expand Down
6 changes: 3 additions & 3 deletions project/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#################

from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.bcrypt import Bcrypt
from flask.ext.login import LoginManager
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
import os

################
Expand Down
2 changes: 1 addition & 1 deletion project/home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from flask import render_template, Blueprint, \
request, flash, redirect, url_for # pragma: no cover
from flask.ext.login import login_required, current_user # pragma: no cover
from flask_login import login_required, current_user # pragma: no cover

from .forms import MessageForm # pragma: no cover
from project import db # pragma: no cover
Expand Down
2 changes: 1 addition & 1 deletion project/users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from flask import flash, redirect, render_template, request, \
url_for, Blueprint # pragma: no cover
from flask.ext.login import login_user, \
from flask_login import login_user, \
login_required, logout_user # pragma: no cover

from .forms import LoginForm, RegisterForm # pragma: no cover
Expand Down
2 changes: 1 addition & 1 deletion tests/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from flask.ext.testing import TestCase
from flask_testing import TestCase

from project import app, db
from project.models import User, BlogPost
Expand Down
2 changes: 1 addition & 1 deletion tests/test_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import unittest

from flask.ext.login import current_user
from flask_login import current_user
from flask import request

from base import BaseTestCase
Expand Down