This commit is contained in:
resteve 2014-10-27 20:22:01 +01:00
parent 765e54d53a
commit 84346f6628
1 changed files with 9 additions and 0 deletions

9
csrf.py Normal file
View File

@ -0,0 +1,9 @@
#This file is part galatea blueprint for Flask.
#The COPYRIGHT file at the top level of this repository contains
#the full copyright notices and license terms.
from flask import current_app
from flask_wtf.csrf import CsrfProtect
with current_app.app_context():
csrf = CsrfProtect()
csrf.init_app(current_app)