Changeset - c371e8f90946
[Not reviewed]
version_5
0 1 0
Dennis Fink - 10 years ago 2015-07-21 22:39:02
dennis.fink@c3l.lu
Initalize csrf
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
ennstatus/__init__.py
Show inline comments
 
@@ -3,12 +3,14 @@ import json
 

	
 
from flask import Flask, render_template
 
from flask.ext.bootstrap import Bootstrap
 
from flask.ext.wtf import CsrfProtect
 

	
 
from werkzeug.contrib.fixers import ProxyFix
 

	
 
import gnupg
 

	
 
bootstrap = Bootstrap()
 
csrf = CsrfProtect()
 

	
 
config_file = os.path.abspath('config.json')
 

	
 
@@ -40,6 +42,7 @@ def create_app():
 
    app.wsgi_app = ProxyFix(app.wsgi_app)
 

	
 
    bootstrap.init_app(app)
 
    csrf.init_app(app)
 

	
 
    from .status.functions import mail
 
    mail.init_app(app)
0 comments (0 inline, 0 general)