Ajax CSRF example is needlessly restrictive
|Reported by:||Owned by:||nobody|
|Has patch:||no||Needs documentation:|
|Needs tests:||Patch needs improvement:|
On https://docs.djangoproject.com/en/dev/ref/contrib/csrf/ , the jQuery call begins "$(document)..." which needlessly locks the user into using jQuery only, and not jQuery plus other libraries, which jQuery is designed to do; jQuery can be told to relinquish the "$" identifier, which other libraries like Prototype depend on. There is no loss and pure gain in terms of compatibility with multiple library usage if the call begins "jQuery(document)..."