Changes between Version 87 and Version 88 of RemovingTheMagic
- Timestamp:
- Mar 6, 2006, 4:40:14 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RemovingTheMagic
v87 v88 637 637 New behavior: Any exception that has a {{{silent_variable_failure}}} attribute fails silently in the template system. {{{django.core.template.SilentVariableFailure}}} no longer exists. 638 638 639 === Request.user is now set via middleware ===640 641 It used to be set in the mod_python and wsgi handlers. You will need to add "django.contrib.auth.middleware.RequestUserMiddleware" somewhere '''after''' "django.contrib.sessions.middleware.SessionMiddleware" in MIDDLEWARE_CLASSES in your settings.py file. Otherwise authentication won't work.639 === request.user is now set via middleware === 640 641 It used to be set in the mod_python and wsgi handlers. You will need to add {{{"django.contrib.auth.middleware.AuthenticationMiddleware"}}} somewhere '''after''' {{{"django.contrib.sessions.middleware.SessionMiddleware"}}} in {{{MIDDLEWARE_CLASSES}}} in your settings.py file. Otherwise accessing {{{request.user}}} will raise an {{{AttributeError}}}. 642 642 643 643