This commit is contained in:
codl 2017-08-07 15:06:29 +02:00
parent 86751369e3
commit a0c5a7cadc
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 3 additions and 2 deletions

5
app.py
View File

@ -11,7 +11,8 @@ default_config = {
"SQLALCHEMY_DATABASE_URI": "postgresql+psycopg2:///forget",
"SECRET_KEY": "hunter2",
"CELERY_BROKER": "amqp://",
"HTTPS": True
"HTTPS": True,
"SENTRY_CONFIG": {}
}
app.config.update(default_config)
@ -33,4 +34,4 @@ sentry = None
if 'SENTRY_DSN' in app.config:
from raven.contrib.flask import Sentry
sentry = Sentry(app, dsn=app.config['SENTRY_DSN'])
app.config['SENTRY_CONFIG_RELEASE'] = version.version
app.config['SENTRY_CONFIG']['release']= version.version