Look.
If your python interpreter can't import django, you installed it wrong.
C'est tres facil.

the django module should be installed to the system and should be importable
from anywhere.  Setting your PYTHON_PATH is, at best, a hack, and at worst,
will cause massive problems (as hacks do) when any little unrelated thing
changes.

Get rid of your installation of django and re-install it.

if I had to guess (and I do) I'd say somehow or someway there is a
permissions issue, but doing a simple removal/reinstall is the easiest way I
can think of.

To test it, go to any unrelated location in your file-system  (ie: cd /usr
or cd /var or something, start up python and import django.)

There should never be a need to fiddle with your PATH or your PYTHON_PATH
when importing django if it was installed correctly.

Also, be sure you don't have duplicate copies of python 2.4 installed on
your system.

On Thu, Mar 27, 2008 at 11:51 AM, Slayer_X <[EMAIL PROTECTED]> wrote:

>
> Hi, sorry for the delay
>
> On Mar 16, 2:45 pm, prz <[EMAIL PROTECTED]> wrote:
> > are you sure you have django directory _IN_
> >
> > /usr/lib/python2.4/site-packages/django
>
> Yes, I have the django directory
>
>
> > or is it only
> >
> > /usr/lib/python2.4/site-packages/django/core/handlers/modpython.py
> --
> I have that file too
>
>
> > then you would need only
> >
> > /usr/lib/python2.4/site-packages
> >
> > in the path ?
> >
> >     -- tony
> --
> I tried with
> PythonPath "['/usr/lib/python2.4/site-packages/django'] +
> sys.path"
>
> and
>
> PythonPath "['/usr/lib/python2.4/site-packages/'] +
> sys.path"
>
> And I obtain the same error:
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Mod_python error: "PythonHandler django.core.handlers.modpython"
>
> Traceback (most recent call last):
>
>  File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line
> 287, in HandlerDispatch
>    log=debug)
>
>  File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line
> 461, in import_module
>    f, p, d = imp.find_module(parts[i], path)
>
> ImportError: No module named django
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Help me please
>
> César
> >
>

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