Hello,

Django provide tools to deals with static files like javascript or
css. The documentation is at [1].

[1] https://docs.djangoproject.com/en/1.10/howto/static-files/

2016-11-09 21:26 GMT+01:00 Gary Roach <[email protected]>:
> Hi all,
>
> I am just starting to use jQuery and Ajax in my project and am having
> trouble setting things up.
>
> I am using Eclipse + pyDev as an IDE. This setup stores everything in a
> workspace directory in my home directory. Instead of putting the whole
> project inside a virtualenv wrapper, things work better if the venv is
> external to the actual project files and the venv contents referenced in the
> Eclipse setup. In that venv file (djenv) there is the following:
>
>>
>> /home/gary/workspace/djenv/lib/python3.5/site-packages/django/contrib/admin/static/admin/js/vendor/jquery/jquery.min.js
>
>
>
> Now to the setup of my main html page. According to W3schools.com I should
> include one of the following in the html head section:
>
>>  <head>
>> <script src="jquery-3.1.1.min.js"></script>
>> </head>
>
>
>  or
>
>>  <head>
>> <script
>> src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js";></script>
>> </head>
>
>
> Neither of these fit my situation. I don't have a separate
> jquery-3.1.1.min.js file and don't want to use the google source.
>
> What I wish to know is can I use something like:
>> <head>
>> <script src=
>> "djenv/lib/python3.5/site-packages/django/contrib/admin/static/admin/js/vendor/jquery/jquery.min.js"</script>
>></head>
>
> or can I use just <script src="jquery.min.js" since the file is already
> referenced in my django setup.
>
> Any help will be sincerely appreciated.
>
> Gary R.
>
> --
> 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/1b51ba33-73a7-63f1-1de2-a3ada145fbc5%40verizon.net.
> For more options, visit https://groups.google.com/d/optout.



-- 

Cordialement, Coues Ludovic
+336 148 743 42

-- 
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/CAEuG%2BTYuAn%2Bx5%3DWTd3b5Vv-vP-QzQSnMjU3g962ZZo5TDsPh8A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to