update CSRFProtect in extensions

FlaskWTFDeprecationWarning: "flask_wtf.CsrfProtect" has been renamed to "CSRFProtect" and will be removed in 1.0.
master
Steven Woods 8 years ago committed by GitHub
parent c0e6e8ce5d
commit 970b780edd
  1. 4
      {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/extensions.py

@ -6,10 +6,10 @@ from flask_debugtoolbar import DebugToolbarExtension
from flask_login import LoginManager
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy
from flask_wtf.csrf import CsrfProtect
from flask_wtf.csrf import CSRFProtect
bcrypt = Bcrypt()
csrf_protect = CsrfProtect()
csrf_protect = CSRFProtect()
login_manager = LoginManager()
db = SQLAlchemy()
migrate = Migrate()

Loading…
Cancel
Save