tags:

views:

399

answers:

3

I've spend a few hours in frustration, trying to disable the CSRF which Django now tries to force on me, to no avail. Had anyone else tried this with more success? I'm fine with anything that works, except for a source patch (but monkeypatches are okay).

+2  A: 

I haven't actually tried to disable it (never had the need), but I imagine it's just a matter of removing the CSRF middleware(s) from the MIDDLEWARE_CLASSES setting in your settings.py.

Epcylon
I believe it is now enabled by default on the contrib apps.
Harold
No, it just flat out ignores what's in MIDDLEWARE_CLASSES of my settings.py
RommeDeSerieux
A: 

Try commenting out the csrf middleware and restarting the server. A lot of the time changes like that wont be loaded until afterward.

Josh Sandlin
+3  A: 

Don't do it. But if you must, try this.

Plinio