By cjsmith
via css.dzone.com
Published: Feb 20 2012 / 14:32
Chase Seibert finds himself using custom middleware extensively for common tasks in his Django applications, like logging page runtimes, setting context, copying the HTTP_REFERRER header from an entry page. In this post, Chase provides a decorator/middleware pair to short-circuit the middleware execution of any view.
Add your comment