reminder/app/__init__.py

15 lines
317 B
Python
Raw Normal View History

2018-12-30 09:24:29 +01:00
from flask import Flask
from flask_wtf.csrf import CSRFProtect
from app.index import index
cp = CSRFProtect()
def create_app():
app = Flask(__name__)
app.config['SECRET_KEY'] = 'SECRET_KEY'
app.config['WTF_CSRF_SSL_STRICT'] = False
2018-12-30 09:24:29 +01:00
app.register_blueprint(index)
cp.init_app(app)
return app