diff -r 5ff1fc726848 -r c6bca38c1cbf parts/django/extras/csrf_migration_helper.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/parts/django/extras/csrf_migration_helper.py Sat Jan 08 11:20:57 2011 +0530 @@ -0,0 +1,357 @@ +#!/usr/bin/env python + +# This script aims to help developers locate forms and view code that needs to +# use the new CSRF protection in Django 1.2. It tries to find all the code that +# may need the steps described in the CSRF documentation. It does not modify +# any code directly, it merely attempts to locate it. Developers should be +# aware of its limitations, described below. +# +# For each template that contains at least one POST form, the following info is printed: +# +# +# AKA: +# POST forms: +# With token: +# Without token: +# +# +# Searching for: +#