WSGI Middlewares

Adds Session- and Error-Handling to your App Engine Infrastructure. See Error Handling Guide.

gaetk2.wsgi package

gaetk2.wsgi.wrap_errorhandling(application)[source]

If Sentry is to be activated wrap the app in it.

gaetk2.wsgi.wrap_session(application)[source]

Put gaesession around the app.

gaetk2.wsgi.webapp_add_wsgi_middleware(application)[source]

Called with each WSGI application initialisation.

The most common usage pattern is to just import it in appengine_config.py:

from gaetk2.wsgi import webapp_add_wsgi_middleware