Thanks for your help I fixed the problem by switching to mod_wsgi (I
should have done that sooner) and by using virtualenv.

And the tutorial here:
http://lethain.com/entry/2009/feb/13/the-django-and-ubuntu-intrepid-almanac/

On 4 apr, 18:56, Karen Tracey <kmtra...@gmail.com> wrote:
> On Sat, Apr 4, 2009 at 10:57 AM, pault <paul...@gmail.com> wrote:
>
> >  I have one version 1.02 installed in /var/lib/python-support/
> > python2.5/django/ (i am on a debian machine)
> >  and one version 0.96 in the folder of my project.
>
> Specifics of exactly where you have Django 0.96 installed would have been
> helpful here.  Without such specifics people are forced to guess whether
> you've got exactly the right paths specified in your PythonPath directive.
>
>
>
>
>
> > I read the post from Graham but it doesn't seem to work for me it uses
> > the 1.02 version.
>
> >http://groups.google.com/group/django-users/browse_thread/thread/1c5c...
>
> > <Location "/">
> > PythonInterpreter django.blabla
> > SetHandler python- program
> > PythonHandler django.core.handlers.modpython
> > SetEnv DJANGO_SETTINGS_MODULE blabla.settings
> > PythonDebug On
> > PythonPath "['/home/paul','/home/paul/blabla/django'] + sys.path"
> > </Location>
>
> > How can I get my old sites working through mod_python
>
> Given what you have specified, an import like: "from django import models"
> is going to look for:
>
> /home/paul/django/__init__.py
> /home/paul/blabla/django/django/__init__.py
> continue with same pattern for all of sys.path
>
> I'm guessing the /django you have on the end of the 'blabla' entry is the
> problem, since I suspect that is introducing a 2nd '/django' in the path,
> but since I'm not entirely sure where your 0.96 install is I'm not 100% sure
> of that.
>
> Also be sure that the Apache process has permissions to read the directories
> involved here.
>
> Karen
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to