Re: Experiences with virtualenv + Django?

2011-05-24 Thread Shawn Milochik
I create a folder called 'pyenv' in the root of my 'home' directory and put all of my virtualenvs there. I don't use the root user or the root home folder for anything, and you probably shouldn't either. If you're going to have multiple projects running on the same server, here's what I do.

Re: Experiences with virtualenv + Django?

2011-05-24 Thread John Crawford
(sigh) Naturally as soon as I hit the [send] button, another question comes up :) I switched to my VPS, and was thinking about where to create a project, when I was wondering: How do people generally organize their virtualenv directories, and Django projects? I'm on as root on my machine, and

Re: Experiences with virtualenv + Django?

2011-05-24 Thread John Crawford
Thanks all, great answers. Sounds like virtualenv is better than I thought. And Shawn cleared up one of the misconceptions I had, I didn't realize it was possible to alt-install multiple versions of Python - I was trying to install 2.6 *under* virtualenv, which is not how it works. :) Still not

Re: Experiences with virtualenv + Django?

2011-05-24 Thread Andre Terra
Here's my go-to reference guide to using virtualenv and pip for django development[1]. The same steps apply to deployment, to some extent. Additionally, I recommend you checkout virtualenvwrapper[2]. It makes your life incredibly easier and switching virtualenvs becomes as simple as typing

Re: Experiences with virtualenv + Django?

2011-05-24 Thread Shawn Milochik
On 05/24/2011 09:53 AM, Brian Bouterse wrote: Python is embedded so deeply into operating systems these days that not using virtualenv is a bad idea. Here is what happened to me once: 1. I went to pip intall a python package without virtualenv 2. The installation failed leaving my python

Re: Experiences with virtualenv + Django?

2011-05-24 Thread Brian Bouterse
Python is embedded so deeply into operating systems these days that not using virtualenv is a bad idea. Here is what happened to me once: 1. I went to pip intall a python package without virtualenv 2. The installation failed leaving my python system raising an interpreter error when going to

Re: Experiences with virtualenv + Django?

2011-05-24 Thread Shawn Milochik
1. You can compile Python 2.6 (or 2.7) in your home directory and use that to create your virtualenvs. 2. I do 100% of my Python work with virtualenv, and would never do otherwise. 3. It is not a nightmare AT ALL, and is wonderful. 4. With pip install, pip freeze, and pip install -r it's

Re: Experiences with virtualenv + Django?

2011-05-24 Thread Simon Connah
On 24 May 2011, at 12:34, Stuart MacKay wrote: > > The only problem you might come across is when updating source code from a > repository is that any changes you make will be overwritten. So for example > to use staticfiles with django 1.3 I had to rename directories in > django-autocomplete

Re: Experiences with virtualenv + Django?

2011-05-24 Thread Stuart MacKay
John, Regarding Python 2.6 on CentOS you might find this article useful: http://blog.milford.io/2010/06/alt-installing-python-2-6-from-source-in-centos/ I use virtualenv on a VPS running Ubuntu 10.04 LTS with Django 1.2, django-cms and about 10 other installed apps in various combinations.

Re: Experiences with virtualenv + Django?

2011-05-23 Thread Ori Livneh
virtualenv is good at what it does, but it's not a comprehensive deployment tool. It does one thing, and I think it does it well. A really good resource is JKM's companion repository to his Django deployment workshop, replete with slides. His

Re: Experiences with virtualenv + Django?

2011-05-23 Thread AJ
Virtualenv is amazing. I use one virtualenv setup for a project. never had any troubles. I have shared hosting with Dreamhost.com and I run my Django apps on a virtualenv. :) On Mon, May 23, 2011 at 10:12 PM, Eric Chamberlain wrote: > We run CentOS on our servers and use

Re: Experiences with virtualenv + Django?

2011-05-23 Thread Eric Chamberlain
We run CentOS on our servers and use virtualenv for each of our various django projects (multiple projects on one server), we haven't had any issues, but we use fastcgi between the web server and django. On May 23, 2011, at 7:00 PM, John Crawford wrote: > I'd like to know what kind of

Experiences with virtualenv + Django?

2011-05-23 Thread John Crawford
I'd like to know what kind of experience people have had, in using virtualenv (to run a particular version of Python on a VPS) with Django, and related packages? Not *just* Django (and Python), I'm fairly sure that will work, but all the other bits and pieces that tend to be required, like