On Mon, 2007-05-14 at 11:09 +0000, orestis wrote:
> Hello,
> 
> I think this will be easy to do, but I just want to check:
> 
> Is it possible to have different Django versions on the same host, and
> point my sites to different versions ?
> 
> I'd like to use bleeding edge for personal stuff (yay for
> experimentation) but for any work-related material, I want stability,
> so I'd use 0.96 or whatever version is out and stable at the time, to
> minimize headaches...
> 
> I think it'd be as easy as putting two different django versions like
> this:
> 
> django96
> django-trunk
> 
> under site packages
> 
> and use in my settings file:
> 
> import django96 as django
> 
> right ?

That won't work. By the time your settings file is imported, other bits
have already been imported too.

> 
> Or should I just use the PYTHONPATH env variable to point to the right
> django installation ?

That's a solution, yes.

> 
> Has anybody done this ?

I do it all the time. I five or six different Django codebases that I
use with some regularity and switching between them is pretty common
(and fast).

Actually, what I do for my normal development work is have a symlink in
the directory containing all my sources that I just flip to the version
I want to use at the moment. A symlink in python's site-packages points
to /home/malcolm/BleedingEdge/Django/django_src/django and I just move
the django_src symlink to point to the version I'm using at the moment.
The reason for this extra link is because then I can do everything as
user "malcolm" without having to become root or use sudo.

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to