Changes between Version 87 and Version 88 of RemovingTheMagic


Ignore:
Timestamp:
Mar 6, 2006, 4:40:14 PM (18 years ago)
Author:
jkocherhans
Comment:

updated docs for request.user

Legend:

Unmodified
Added
Removed
Modified
  • RemovingTheMagic

    v87 v88  
    637637New behavior: Any exception that has a {{{silent_variable_failure}}} attribute fails silently in the template system. {{{django.core.template.SilentVariableFailure}}} no longer exists.
    638638
    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
     641It 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}}}.
    642642
    643643
Back to Top