Skip to content

Commit

Permalink
wsgi docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Oct 10, 2011
1 parent 1e69147 commit c41a620
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/config/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ This document describes configuration options available to Sentry.
flask
logging
logbook
wsgi


Client Settings
Expand Down
16 changes: 16 additions & 0 deletions docs/config/wsgi.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Configuring ``wsgi`` Middleware
===============================

Raven includes a simple to use wsgi middleware.

::

from raven import Client
from raven.middleware import Sentry

application = Sentry(application, Client(
servers=['http://sentry.local/store/'],
key='my secret key'
)

.. note:: Many frameworks will not propagate exceptions to the underlying WSGI middleware by default.

0 comments on commit c41a620

Please sign in to comment.