Re: Setting up jQuery in debian with virtualenv (SOLVED)

2016-11-12 Thread Gary Roach
Thanks all, I installed libjs-jquery into my active venv directory. It turns out that libjs-jquery actually has 3 different virsions in it . I copied the jquery.js file over to my /static/ file in Eclipse. It works fine. Gary R. On 11/10/2016 10:22 AM, Luis Zárate wrote: Mmm why not just do

Re: Setting up jQuery in debian with virtualenv

2016-11-10 Thread ludovic coues
{% static 'admin/js/vendor/jquery/jquery.min.js' %} Assuming you have django.contrib.admin in your INSTALLED_APP, this will do what you want. 2016-11-10 19:22 GMT+01:00 Luis Zárate : > Mmm why not just download Jquery and create a folder called static inside > one controlled app, maybe pone ins

Re: Setting up jQuery in debian with virtualenv

2016-11-10 Thread Luis Zárate
Mmm why not just download Jquery and create a folder called static inside one controlled app, maybe pone inside the project. If you want, you can use django admin jquery but $ is not available because django use django.JQuery for prevent conflict with custom user jquery El jueves, 10 de noviembre

Re: Setting up jQuery in debian with virtualenv

2016-11-10 Thread Gary Roach
Hi, Sorry about the confusion. I misspoke. I was trying to imply that there was a jquery.min.js file in the venv (djenv) file. As you implied, it was installed with pip django. A very bad choice of words. I am trying to set up my project so that I am not using a system version of jquery sin

Re: Setting up jQuery in debian with virtualenv

2016-11-10 Thread Michal Petrucha
On Wed, Nov 09, 2016 at 01:54:57PM -0800, Gary Roach wrote: > Ludovic > > Thank you for the reply but I know how to use static files. The problem is > that I already have a jquery file under version control inside my virtual > environment wrapper and do not wish to use an external file . Use of a

Re: Setting up jQuery in debian with virtualenv

2016-11-09 Thread Antonis Christofides
Hi, If, as you say, you "have a jquery file under version control inside [your] virtual environment wrapper", I believe you are doing something wrong. We normally don't put jquery files in virtualenv (although `pip install django` will do so), and we normally do not version control the virtualenv.

Re: Setting up jQuery in debian with virtualenv

2016-11-09 Thread Javier Guerra Giraldez
On 9 November 2016 at 13:54, Gary Roach wrote: > I want to know how to use the pip installed version of the jquery file if > possible. you can check what the admin templates do. probably something like {% url "admin/js/vendor/jquery/jquery.min.js" %} -- Javier -- You received this message

Re: Setting up jQuery in debian with virtualenv

2016-11-09 Thread Gary Roach
Ludovic Thank you for the reply but I know how to use static files. The problem is that I already have a jquery file under version control inside my virtual environment wrapper and do not wish to use an external file . Use of a normal static file will open my application up to uncontrolled ve

Re: Setting up jQuery in debian with virtualenv

2016-11-09 Thread ludovic coues
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 : > Hi all, > > I am just starting to use jQuery and Ajax in my project and am having >

Setting up jQuery in debian with virtualenv

2016-11-09 Thread Gary Roach
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