diff options
Diffstat (limited to 'python/Dawn/__init__.py')
| -rw-r--r-- | python/Dawn/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python/Dawn/__init__.py b/python/Dawn/__init__.py index 87be366c..d571f5aa 100644 --- a/python/Dawn/__init__.py +++ b/python/Dawn/__init__.py @@ -1,10 +1,13 @@ -from flask import Flask import logging + +from flask import Flask from flask_sqlalchemy import SQLAlchemy from sqlalchemy import MetaData +from flask_wtf.csrf import CSRFProtect app = Flask(__name__) app.config.from_envvar('CONF') +csrf = CSRFProtect(app) db = SQLAlchemy(app, metadata=MetaData(schema=app.config['SCHEMA'])) if not app.debug: |
