{ "html": "
\n

Installation

\n

If you haven’t already, start by downloading Raven. The easiest way is\nwith pip:

\n
pip install raven --upgrade\n
\n
\n
\n\n\n
\n

Installation

\n

If you haven’t already, install raven with its explicit Flask dependencies:

\n
pip install raven[flask]\n
\n
\n
\n\n\n
\n

Setup

\n

The first thing you’ll need to do is to initialize Raven under your application:

\n
from raven.contrib.flask import Sentry\nsentry = Sentry(app, dsn='___DSN___')\n
\n
\n

If you don’t specify the dsn value, we will attempt to read it from\nyour environment under the SENTRY_DSN key.

\n
\n", "link": "https://docs.getsentry.com/clients/python/integrations/flask/", "id": "python-flask", "name": "Flask" }