|Author:||Etienne Robillard <email@example.com>|
The notmm.controllers package provides a simple gateway for Django apps to extend from the BaseController class, an interface to access and store internal application data at runtime.
The BaseController module requires the Cython library to operate properly. It purposes is to provide an abstract base class and a set of common methods to derived subclasses. See also :WSGIController:.
The WSGIController class provides the core wrapper for Django apps to extend from. It is essentially a thin but valid WSGI middleware to sit between the Django and the webserver. Django 1.4 or higher is recommended for optimal results.
In addition, the WSGIController supports many exclusive features such as:
To register a custom WSGI response handler
from notmm.controllers.wsgi import WSGIController wsgi_app = WSGIController() wsgi_app.sethandle('handle401', 'myapp.views.handle401') wsgi_app.sethandle('handle404', 'myapp.views.handle404') wsgi_app.sethandle('handle500', 'myapp.views.handle500')
The session and authentication chapters.