This was posted not to long ago, but I think it's absolutely fantastic. It's like restoring a classic ford pickup, but tossing in an AC unit and some new brakes.
22 karma · joined January 13, 2012
Fahrenheit
Pfft.
Edit: Code backing from middleware/csrf.py:
request_csrf_token = request.POST.get('csrfmiddlewaretoken', '') if request_csrf_token == "": # Fall back to X-CSRFToken, to make things easier for AJAX request_csrf_token = request.META.get('HTTP_X_CSRFTOKEN', '')