• Luke Plant's avatar
    Fixed #9977 - CsrfMiddleware gets template tag added, session dependency… · 8e70cef9
    Luke Plant yazdı
    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
    8e70cef9
Adı
Son kayıt (commit)
Son güncelleme
..
admin_changelist Loading commit data...
admin_inlines Loading commit data...
admin_ordering Loading commit data...
admin_registration Loading commit data...
admin_scripts Loading commit data...
admin_validation Loading commit data...
admin_views Loading commit data...
admin_widgets Loading commit data...
aggregation_regress Loading commit data...
app_loading Loading commit data...
auth_backends Loading commit data...
backends Loading commit data...
bug639 Loading commit data...
bug8245 Loading commit data...
builtin_server Loading commit data...
cache Loading commit data...
comment_tests Loading commit data...
conditional_processing Loading commit data...
context_processors Loading commit data...
custom_columns_regress Loading commit data...
custom_managers_regress Loading commit data...
datastructures Loading commit data...
datatypes Loading commit data...
dateformat Loading commit data...
datetime_safe Loading commit data...
db_typecasts Loading commit data...
decorators Loading commit data...
defaultfilters Loading commit data...
defer_regress Loading commit data...
delete_regress Loading commit data...
dispatch Loading commit data...
expressions_regress Loading commit data...
extra_regress Loading commit data...
file_storage Loading commit data...
file_uploads Loading commit data...
fixtures_regress Loading commit data...
forms Loading commit data...
formwizard Loading commit data...
generic_inline_admin Loading commit data...
generic_relations_regress Loading commit data...
get_or_create_regress Loading commit data...
httpwrappers Loading commit data...
humanize Loading commit data...
i18n Loading commit data...
initial_sql_regress Loading commit data...
inline_formsets Loading commit data...
introspection Loading commit data...
m2m_regress Loading commit data...
m2m_through_regress Loading commit data...
mail Loading commit data...
managers_regress Loading commit data...
many_to_one_regress Loading commit data...
max_lengths Loading commit data...
middleware Loading commit data...
model_fields Loading commit data...
model_forms_regress Loading commit data...
model_formsets_regress Loading commit data...
model_inheritance_regress Loading commit data...
model_inheritance_select_related Loading commit data...
model_regress Loading commit data...
modeladmin Loading commit data...
null_fk Loading commit data...
null_fk_ordering Loading commit data...
null_queries Loading commit data...
one_to_one_regress Loading commit data...
pagination_regress Loading commit data...
queries Loading commit data...
requests Loading commit data...
reverse_single_related Loading commit data...
select_related_regress Loading commit data...
serializers_regress Loading commit data...
servers Loading commit data...
string_lookup Loading commit data...
syndication Loading commit data...
templates Loading commit data...
test_client_regress Loading commit data...
test_utils Loading commit data...
text Loading commit data...
urlpatterns_reverse Loading commit data...
utils Loading commit data...
views Loading commit data...
__init__.py Loading commit data...