reminder/app/__init__.py

14 lines
271 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.register_blueprint(index)
cp.init_app(app)
return app