Re: order of middleware

2010-08-27 Thread Reinout van Rees
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

Re: order of middleware

2010-08-27 Thread Alessandro Ronchi
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

Re: order of middleware

2010-08-27 Thread Reinout van Rees
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",

order of middleware

2010-08-26 Thread Alessandro Ronchi
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",

Re: Order of Middleware

2008-11-18 Thread Malcolm Tredinnick
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', >

Re: Order of Middleware

2008-11-17 Thread Steve Holden
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',

Order of Middleware

2008-11-17 Thread Peter
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