pbs/django-cms-dbtemplates — pull request #32 by pianas (2014-10-09 11:04:49+00:00)
Title: LUN-1869: Since we are managing the state of the current site id, it is ...

...important to sync the CMS_TEMPLATES variables as sooner as possible in the request/response cycle, so that even on early middleware chain breaking (caused by some exception), the error page will be displayed correctly with respect to the current site. This fix also ensures that we are able to show the CMS error page even if there is an early exception raised in the middleware chain