Completely disable Django's CSRF protection in SVN Trunk


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).


Don't do it. But if you must, <a href="http://johnmc.co/llum/disable-csrf-protection-for-django-1-2/#more-198" rel="nofollow">try this</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.


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


  • Plist not saving from dictionary (to Documents)
  • jQuery and dynamically generated table from a start and finish value
  • Json Date to Java Date and back to Json Date
  • Output Ruby duration in iso8601
  • ASP.NET Razor/Webmatrix sites logout user too quickly. How to change?
  • Calculating server uptime gives “The network path was not found”
  • How to get an estimated amount of talktime,music/video playback time, idletime that could be possibl
  • How to send the recepients local time in mails ?
  • Is there a less verbose alternative to Perl's Data::Dumper?
  • R ggvis interactive slider for calculating y values (e.g. for background correction)
  • Git: failed to read object … Invalid argument
  • Additional scripts in PATH
  • “Complex Header” not responsive in current DataTables.net build?
  • Returning this from a constructor function in JS
  • How to set `secure` and `httpOnly` for Plones `__ac` cookie?
  • PHP multiple file uploads
  • Android cannot disable cut copy paste
  • how do i write assembly code from c#?
  • Calculate time difference in hh:mm:ss with simple javascript/jquery
  • nonblocking BIO_do_connect blocked when there is no internet connected
  • How to attach a node.js readable stream to a Sendgrid email?
  • Get data from AJAX - How to
  • Illegal mix of collations for operation for date/time comparison
  • Jenkins: How To Build multiple projects from a TFS repository?
  • Counter field in MS Access, how to generate?
  • Bug in WPF DataGrid
  • Sony Xperia Z Tablet not found by adb
  • How to recover from a Spring Social ExpiredAuthorizationException
  • ILMerge & Keep Assembly Name
  • Javascript + PHP Encryption with pidCrypt
  • what is the difference between the asp.net mvc application and asp.net web application
  • Websockets service method fails during R startup
  • Large data - storage and query
  • How can I estimate amount of memory left with calling System.gc()?
  • WOWZA + RTMP + HTML5 Playback?
  • Calling of Constructors in a Java
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • Why can't I rebase on to an ancestor of source changesets if on a different branch?
  • Hits per day in Google Big Query
  • Append folder name and increment by 1 using batch script