Are you saying that you can't access it as django.jQuery ?

On Tue, Jun 2, 2015 at 4:22 AM, guettli <h...@tbz-pariv.de> wrote:

> I guess I am missing something.
>
> Is there no way to load jquery only once per page?
>
> Use case: I have two widgets which need jquery. I want to use
> these widgets inside the admin interface and on custom pages.
>
> The admin interface has its own jquery and in jquery.init.js this gets
> done:
>
> var django = django || {};
> django.jQuery = jQuery.noConflict(true);
>
> Since jQuery gets removed from the namespace. This means I can't use
> it in the js-files of my widgets.
>
> I really would like to load jquery only once per page.
>
> Regards,
>   Thomas Güttler
>
>
>
>
>
>  --
> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4183890d-7279-4c75-bfe1-de30084b15ca%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/4183890d-7279-4c75-bfe1-de30084b15ca%40googlegroups.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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAB%2BAj0u_adaZ2Z%2BvF3Smny%3Dxwxi%2B7MDkJdeQmJ92M%3DckB%2Bx6zw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to