Django Jquery Namespace
Django: undefined jQuery
Django loads jQuery
as a dependency and stores it under the django
namespace.
To access the jQuery
loaded by Django you would use django.jQuery
.
Using a module pattern to define a module that has jQuery
as a dependency:
(function($){
// Moduleā¦
})(django.jQuery);