class techu.libraries.middleware.ConnectionMiddleware
Automatically setup connections to the mysql41 interface of the Sphinx realtime indexes.
One connection is created for each index.
This is implemented as a middleware in order to make connections available to all requests.
class techu.libraries.middleware.ExceptionLoggingMiddleware
Exception middleware which allows more clear & efficient printouts of errors raised.
Particularly, it overrides the default debug pages of Django which contain extensive HTML
and returns plain text in case the request is performed with the curl command-line tool
or JSON-formatted as an API response inside client applications.
process_response(request, response)

Previous topic


Next topic


This Page