Ajax CSRF example is needlessly restrictive
|Reported by:||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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)..."