-)
-
-if 'django_cas' in INSTALLED_APPS:
- MIDDLEWARE_CLASSES += (
- 'django_cas.middleware.CASMiddleware',
- )
-
-MIDDLEWARE_CLASSES += (
+ 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
+ 'django_cas_ng.middleware.CASMiddleware',