From 649a694f8a42937c3662425977bdc579a9ed968c Mon Sep 17 00:00:00 2001 From: Vividh S Viswanatha Date: Mon, 24 Aug 2015 23:44:48 -0400 Subject: [PATCH] Update extension imports to flask_* See mitsuhiko/flask#1135 --- .../{{cookiecutter.app_name}}/public/views.py | 2 +- .../{{cookiecutter.app_name}}/user/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/public/views.py b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/public/views.py index 455fdb9..879291b 100644 --- a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/public/views.py +++ b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/public/views.py @@ -2,7 +2,7 @@ """Public section, including homepage and signup.""" from flask import (Blueprint, request, render_template, flash, url_for, redirect, session) -from flask.ext.login import login_user, login_required, logout_user +from flask_login import login_user, login_required, logout_user from {{cookiecutter.app_name}}.extensions import login_manager from {{cookiecutter.app_name}}.user.models import User diff --git a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/user/views.py b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/user/views.py index e8c41ef..ca99cc8 100644 --- a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/user/views.py +++ b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/user/views.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- from flask import Blueprint, render_template -from flask.ext.login import login_required +from flask_login import login_required blueprint = Blueprint("user", __name__, url_prefix='/users', static_folder="../static")