The Django`s docs tell next:
To avoid conflicts with user-supplied scripts or libraries, Django’s jQuery 
(version 2.1.4) is namespaced as django.jQuery. If you want to use jQuery 
in your own admin JavaScript without including a second copy, you can use 
the django.jQuery object on changelist and add/edit views.
(see https://docs.djangoproject.com/es/1.9/ref/contrib/admin/… 
<https://docs.djangoproject.com/es/1.9/ref/contrib/admin/#jquery>)

But, how using this build-in jQuery. When I am tring to use $ in my custom 
view I had:

$('body')
Uncaught TypeError: $ is not a function(…)

But it is successfully worked in main page of the Django-Admin

$('body')
<body class="dashboard" cz-shortcut-listen="true">…</body>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3c5ab528-05fa-4446-88c3-c2a2419d24fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to