1
0
mirror of https://github.com/django/django.git synced 2024-12-23 17:46:27 +00:00
django/docs/ref
Luke Plant 8e70cef9b6 Fixed #9977 - CsrfMiddleware gets template tag added, session dependency removed, and turned on by default.
This is a large change to CSRF protection for Django.  It includes:

 * removing the dependency on the session framework.
 * deprecating CsrfResponseMiddleware, and replacing with a core template tag.
 * turning on CSRF protection by default by adding CsrfViewMiddleware to
   the default value of MIDDLEWARE_CLASSES.
 * protecting all contrib apps (whatever is in settings.py)
   using a decorator.

For existing users of the CSRF functionality, it should be a seamless update,
but please note that it includes DEPRECATION of features in Django 1.1,
and there are upgrade steps which are detailed in the docs.

Many thanks to 'Glenn' and 'bthomas', who did a lot of the thinking and work
on the patch, and to lots of other people including Simon Willison and
Russell Keith-Magee who refined the ideas.

Details of the rationale for these changes is found here:

http://code.djangoproject.com/wiki/CsrfProtection

As of this commit, the CSRF code is mainly in 'contrib'.  The code will be
moved to core in a separate commit, to make the changeset as readable as
possible.



git-svn-id: http://code.djangoproject.com/svn/django/trunk@11660 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-10-26 23:23:07 +00:00
..
contrib Fixed #9977 - CsrfMiddleware gets template tag added, session dependency removed, and turned on by default. 2009-10-26 23:23:07 +00:00
files Fixed #11056 -- Corrected reference to File class in storage docs. Thanks to wam for the report. 2009-06-10 12:44:53 +00:00
forms Fixed #7437: SelectDateWidget is not documented. 2009-09-10 15:45:15 +00:00
models Fixed #11402: added a QuerySet.exists() method. Thanks, Alex Gaynor. 2009-10-24 00:28:39 +00:00
templates Fixed #9977 - CsrfMiddleware gets template tag added, session dependency removed, and turned on by default. 2009-10-26 23:23:07 +00:00
authbackends.txt Fixed #11066 -- Corrected 15 duplicate "the"s found in docs and code comments. Thanks kaikuehne. 2009-05-17 16:45:28 +00:00
databases.txt Fixed #10566: Added support for cx_Oracle compiled with the WITH_UNICODE flag. 2009-08-24 15:45:48 +00:00
django-admin.txt Fixed #11221 -- Replaced a reference to a non-existent URL with an actual explanation of sequences. Thanks to Rob Hudson for the report, and SmileyChris for the patch. 2009-06-18 13:37:10 +00:00
generic-views.txt Refs #11336 -- Another dummy commit to force refresh of some index pages by Sphinx, caused by file ommitted from [11025] and included in [11026]. Thanks to Peter Landry for the report, and Ramiro for the explanation. 2009-06-18 00:16:48 +00:00
index.txt Fixed #11336 -- Dummy commit to force refresh of some index pages by Sphinx, caused by file ommitted from [11025] and included in [11026]. Thanks to Peter Landry for the report, and Ramiro for the explanation. 2009-06-17 23:57:27 +00:00
middleware.txt BACKWARDS-INCOMPATIBLE CHANGE: Removed SetRemoteAddrFromForwardedFor middleware. 2009-07-29 05:35:51 +00:00
request-response.txt Fixed #11728 -- Corrected a typo in a class name in the request/response docs. Thanks to Tommstein for the report. 2009-09-12 22:51:16 +00:00
settings.txt Fixed #9977 - CsrfMiddleware gets template tag added, session dependency removed, and turned on by default. 2009-10-26 23:23:07 +00:00
signals.txt Corrected spaces for tabs from r11540. 2009-09-13 06:18:16 +00:00
unicode.txt Fixed a whole bunch of small docs typos, errors, and ommissions. 2009-04-03 18:30:54 +00:00