Are you using django admin template?
Where are your Jquery call? in the header ?

A template example could be useful.

2016-07-03 12:20 GMT-06:00 Seti Volkylany <[email protected]>:

> It is not worked even the main admin page
>
> django.jQuery('body')
> Uncaught ReferenceError: django is not defined(…)(anonymous function) @
> VM9451:1
> $()
> null
> $django.jQuery('body')
> Uncaught ReferenceError: $django is not defined(…)
>
> On Sun, Jul 3, 2016 at 9:08 PM, Luis Zárate <[email protected]> wrote:
>
>> Replace $ by django.jQuery
>>
>> For example django.jQuery('body')
>>
>>
>>
>> El domingo, 3 de julio de 2016, Seti Volkylany <[email protected]>
>> escribió:
>> >
>> > 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/…)
>> >
>> > 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.
>> >
>>
>> --
>> "La utopía sirve para caminar" Fernando Birri
>>
>>
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/h4QKC2xHY60/unsubscribe.
>> To unsubscribe from this group and all its topics, 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/CAG%2B5VyNqyiFpL87i2rHiui4ahQqMes2_pvR1QbSbqTXUHS2k6Q%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAG%2B5VyNqyiFpL87i2rHiui4ahQqMes2_pvR1QbSbqTXUHS2k6Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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/CAGWd_9%2BsrUg805xAFvu90PGNrYPzm92W6Lax3Rz8Upafwie_pw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAGWd_9%2BsrUg805xAFvu90PGNrYPzm92W6Lax3Rz8Upafwie_pw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
"La utopía sirve para caminar" Fernando Birri

-- 
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/CAG%2B5VyOgDnq%2BEwKYgoZ-tAuoeO_aRdJ3aXtqfJhR6mfzhybVKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to