On 08/27/2010 12:43 PM, Alessandro Ronchi wrote:
2010/8/27 Reinout van Rees >
I don't know about performance, but at least the GZipMiddleware
documentation says it has to be right at the top to prevent errors.
It mucks about with
2010/8/27 Reinout van Rees
>
> I don't know about performance, but at least the GZipMiddleware
> documentation says it has to be right at the top to prevent errors. It
> mucks about with the content-length, that's why.
>
So, I should put it before commonMiddleware?
> By
On 08/26/2010 07:08 PM, Alessandro Ronchi wrote:
Is this middleware classes correctly ordered for performance?
thanks in advance,
MIDDLEWARE_CLASSES = (
"django.middleware.common.CommonMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
Is this middleware classes correctly ordered for performance?
thanks in advance,
MIDDLEWARE_CLASSES = (
"django.middleware.common.CommonMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.locale.LocaleMiddleware",
On Mon, 2008-11-17 at 11:53 -0800, Peter wrote:
> When I run django admin and do startproject I get a settings file that
> has:
>
> MIDDLEWARE_CLASSES = (
> 'django.middleware.common.CommonMiddleware',
> 'django.contrib.sessions.middleware.SessionMiddleware',
>
Peter wrote:
> When I run django admin and do startproject I get a settings file that
> has:
>
> MIDDLEWARE_CLASSES = (
> 'django.middleware.common.CommonMiddleware',
> 'django.contrib.sessions.middleware.SessionMiddleware',
> 'django.contrib.auth.middleware.AuthenticationMiddleware',
When I run django admin and do startproject I get a settings file that
has:
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
)
In the
7 matches
Mail list logo