1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

add sentry support

This commit is contained in:
Alexis Metaireau 2012-06-10 01:49:01 +02:00
parent 599895cac3
commit b3ce91c79f
2 changed files with 6 additions and 0 deletions

View file

@ -5,3 +5,5 @@ flask-mail
flask-babel
flask-rest
jinja2==2.6
raven
blinker

View file

@ -1,5 +1,6 @@
from flask import Flask, g, request, session
from flaskext.babel import Babel
from raven.contrib.flask import Sentry
from web import main, db, mail
from api import api
@ -22,6 +23,9 @@ mail.init_app(app)
# translations
babel = Babel(app)
# sentry
sentry = Sentry(app)
@babel.localeselector
def get_locale():
# get the lang from the session if defined, fallback on the browser "accept