Skip to main content

Posts

Showing posts with the label csrf

Django: upgrading django from 1.1 to 1.2.5 and CSRF protection modifications

Greetings! Yesterday I completed a quick upgrade from django version 1.1 to oldest supported 1.2.5. I had a lot of background for doing so: - Fist my hosting has django 1.2.5 already installed. - Second I had some thoughts on using old stuff. It's better to evolve in Djngo version too :) - Third and the main: Newly found on Google social authentication plugin was the final dot in my decision... So I'll try to provide My experiences on migrating (updating) my project's Django from version 1.1 (developed on it) to oldest now supported 1.2.5. Let's get started. 1. Read the release 1.2 docs.  I needed a quick solution. In general I had some issues with site giving me errors with {csrf_token} not present in a form's POST request. To handle this and IMHO main issue upon upgrading you have to handle Cross Site Request Forgery protection backwards incompatible upgrade.  You can read official django docs about new CSRF protection and/or use this quick manual. ...