{% extends "sentry/partial/client_config/python_base.html" %} {% load i18n %} {% block inner %}

{% trans "You'll also need blinker if you do not have it already:" %}

pip install blinker

{% trans "Blinker is required for signals to work within Flask." %}

{% trans "Add the required configuration in your application setup:" %}

from raven.contrib.flask import Sentry

app.config['SENTRY_DSN'] = '{% if dsn %}{{ dsn }}{% else %}SENTRY_DSN{% endif %}'
sentry = Sentry(app)

{% trans "That's it! Raven automatically installs an error handling hook to pipe all uncaught exceptions to Sentry." %}

{% endblock %}