> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to django-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>
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.
The apps are installed using pip from either the main python repository
or directly from source checked out out of github and bitbucket. To date
I have had no issues.
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 so the javascript and css files would be found
automatically. Any time I deploy a new release and update the installed
packages using pip then I have to rename the directories again since pip
effectively does a clean install.
Regards,
Stuart MacKay
Lisbon, Portugal
Fabric and a simple shell script would sort that one out. Just automate the updating of your packages with Fabric and then once all the packages have been updated, use Fabric to run your shell script (or Python script) to rename the folders as required.
Simon.
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 super-easy to
replicate a virtualenv.
Like you, I use Cent OS with Python 2.4 installed, but all of our apps
run under Python 2.7.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
To add to that, you can (and should) create each virtualenv with the
--no-site-packages option. That way, each virtualenv is isolated from
whatever stuff you have installed into the OS's default Python
installation. Further, I never install anything in the base Python
installation.
Not only do you get standalone virtualenvs for whatever purpose you
like, it also makes upgrading a lot easier.
And an additional side note: If you are in a place (like a VPS) where
you have root access, you should install Python2.7 with configure, make,
sudo make altinstall. The altinstall will install Python2.7 on your
system in an alternate location, leaving the default version alone so
everything else in the OS continues to work.
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. I don't know if it's "recommended," but it works great
for me (and my company).
Separate 'home' folder for each project.
Each 'home' folder has a 'pyenv' folder. You'll only be actively
using one, but you can have multiple for testing updates to Python
modules or Python versions.
Always install and use supervisor + gunicorn, and have the Django
app run (via gunicorn) by supervisor. You'll need to tweak the
supervisor config file so that the log and PID files don't conflict, but
that's easy.
One nginx installation with separate config files for each project,
each very simple and mainly just doing a proxy_pass to the appropriate port.
If you have more questions don't hesitate.
Shawn