django/docs/ref/contrib
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
..
admin Fixed some ReST markup in admin installation docs. 2009-09-14 22:49:03 +00:00
comments Fixed #11831 -- Corrected typo in comments docs. Thanks to gsf for the patch. 2009-09-12 22:43:20 +00:00
formtools Fixed #9977 - CsrfMiddleware gets template tag added, session dependency removed, and turned on by default. 2009-10-26 23:23:07 +00:00
auth.txt Massive reorganization of the docs. See the new docs online at http://docs.djangoproject.com/. 2008-08-23 22:25:40 +00:00
contenttypes.txt Fixed #11450 -- Corrected markup problem in contenttype docs. Thanks to seveas for the report. 2009-07-11 15:37:08 +00:00
csrf.txt Fixed #9977 - CsrfMiddleware gets template tag added, session dependency removed, and turned on by default. 2009-10-26 23:23:07 +00:00
databrowse.txt Fixed #9497 - Doc typos. Many thanks ramiro. 2008-11-02 20:43:20 +00:00
flatpages.txt Fixed a whole bunch of small docs typos, errors, and ommissions. 2009-04-03 18:30:54 +00:00
humanize.txt Fixed #8753: converted "new in ..." callouts to proper Sphinx "versionadded/versionchanged" directives. Thanks to Marc Fargas for all the heavy lifting here. 2008-09-02 03:40:42 +00:00
index.txt Fixed #10505: added support for bulk admin actions, including a globally-available "delete selected" action. See the documentation for details. 2009-03-23 20:22:56 +00:00
localflavor.txt Fixed #8962 -- Consistently support format and input_format in the various (individual, combined, split) date and time form fields and widgets. 2009-03-22 16:13:06 +00:00
redirects.txt Massive reorganization of the docs. See the new docs online at http://docs.djangoproject.com/. 2008-08-23 22:25:40 +00:00
sitemaps.txt Fixed #9078: Added commas to the example URLconf lines so that they can be easily copied and pasted. Thanks to mo.longman@gmail.com for the suggestion. 2008-09-14 09:39:04 +00:00
sites.txt Fixed #9497 - Doc typos. Many thanks ramiro. 2008-11-02 20:43:20 +00:00
syndication.txt Fixed a whole bunch of small docs typos, errors, and ommissions. 2009-04-03 18:30:54 +00:00
webdesign.txt Massive reorganization of the docs. See the new docs online at http://docs.djangoproject.com/. 2008-08-23 22:25:40 +00:00