Using a jQuery plugin in Django admin and getting a “$().foo is not a function” or “Object ... has no method foo” error?
Are you using a jQuery plugin, for instance jQuery UI,
to spice up the Django admin site? Then you might get either an error like “foo is not a function
” (Firebug) or “Object ... has no method foo
” (Chrome Developer Tools).
Are you confused because foo
should be defined in the plugin? Don’t worry, the
solution is simple.