Thanks for the reply. I don't quite understand yet.  Let's see how close I am.

I have a Python application directory (on my machine,
C:\apps\Python25\).  Inside that directory I have
\Lib\site-packages\django, which is currently v0.96.

Right now, the PYTHONPATH environment variable is not set at all on my
machine.  When I work through Django examples, I can run "manage.py"
from my Django application folder (C:\work\djcode\mytut\) and
automatically talk to django modules, which are presumably in
\Lib\site-packages\django.  This happens, I assume, because
C:\apps\Python25\ is on my system path, and either a) Python
automatically checks the \site-packages\ subdirectory for imports, or
b) a hook was added when I installed Django, so that Python knows to
look there for "django" imports.

I have not installed Django v1.0 yet.  I will have to do something
when I install it so as not to overwrite the version already in
\site-packages\.  The obvious solution is to rename the existing
directory to (say) django096 before installing, but I don't know what
I might break when I do that.

I'm not sure we're on the same page, but maybe you are telling me that
if I rename the old directory and then install v1.0 so that I have
both \django (1.0) and \django096 (0.96) both under \site-packages\,
that I can set the PYTHONPATH variable to tell python to
preferentially choose one of these directories over the other?  Or are
you perhaps talking about having different installs of Python itself,
or something else entirely?

Matt


On Fri, Sep 12, 2008 at 10:09 AM, Jeff Anderson
<[EMAIL PROTECTED]> wrote:
> Matt wrote:
>> Does anyone have ideas on running 0.96 and 1.0 side by side safely?
>>
> All I've done in the past is set my PYTHONPATH based on which
> checkout/release of Django I want used in a particular instance. It
> works quite well, even in production.
>
> Jeff Anderson
>
>

--~--~---------~--~----~------------~-------~--~----~
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