How did you use it in the nav.html file? Can you please write it here,
maybe it's a reference issue.

On Monday, May 5, 2014, Andreas Bloch <ablo...@gmail.com> wrote:

> How do you access (or include) jquery in a file, which is included?
> I'm getting a "Uncaught ReferenceError: $ is not defined" when trying to
> use jquery in the included file...
>
> In my template, that extends base.html, I am able to use jquery but not
> the file I'm including with {% include 'nav.html' %} in the template.
>
> I could just put my <script> in the template (and not in the include) but
> I want to put it in the include to have good separation...
>
> How could you achieve this?
>
>
>
>
>
>  --
> 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<javascript:_e(%7B%7D,'cvml','django-users%2bunsubscr...@googlegroups.com');>
> .
> To post to this group, send email to 
> django-users@googlegroups.com<javascript:_e(%7B%7D,'cvml','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/6cd3b778-f5dc-4afa-b83b-fe79850c2aa4%40googlegroups.com<https://groups.google.com/d/msgid/django-users/6cd3b778-f5dc-4afa-b83b-fe79850c2aa4%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/CALr%3D9OV_9Rq02sw4o2z1XUVJPh2HTceTXe-WZcGipuQkqhLnkg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to