python - Django running wrong version -


although running "python" shell runs python v2.7, django loading files python2.4, shown in error when load django site:

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

i think django installed version 2.7 , that's why bottom says "no module named django"

this first django install (it's on mediatemple dv server) wouldn't surprised if i'm doing stupid. thanks!

mod_python built 2.4, django installed 2.7. either build mod_python 2.7, install django under 2.4, or put local copy of django project version of python doesn't matter.


Comments

Popular posts from this blog

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -