On Apr 29, 10:03 pm, berthor <[EMAIL PROTECTED]> wrote:
> I was told by my boss that I would be using both django 0.96 and
> django trunk on 2 separate projects.  Now I'm not sure how to go about
> doing this, as I have been working with only django 0.96 before.  I've
> downloaded the trunk version on my desktop, and have tar file of 0.96
> also on my desktop.
>
> My boss told me to install them both, and have a different python path
> set up depending on which project I am working on.

Your boss is right: that should work just fine. Install each version
of Django in a different location, then set the Python path
differently for each project. In development one way of doing this is
with an environment variable before you call manage.py:

$ PYTHONPATH=/home/django/django-0.96/ python manage.py runserver

Then in production you can set the Python path using a mod_python
directive.

Alternatively, you could hack your manage.py script to modify the
Python path at the top of the script file:

import sys
sys.path.insert(0, '/home/django/django-0.96/')

Finally, you could look in to using virtualenv to set up different
Python environments (with different stuff installed on the python
path) on the same machine: http://pypi.python.org/pypi/virtualenv

Cheers,

Simon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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