Django Mod-python Error
Can someone please tell what this strange error is Mod_python error: 'PythonHandler django.core.handlers.modpython' Traceback (most recent call last): File '/usr/lib/python2.4
Solution 1:
That you're missing the Cookie package (which is not part of Django), but it should be Builtin.
If you're using Python 3 please note that Cookie
has been renamed to http.cookies
, and that Django is incompatible with Python not 2.x.
That is what you're missing: http://docs.python.org/library/cookie.html.
Edit
I see you're running python 2.4. Consider switch to python 2.6 or 2.7, and check the presence of /usr/lib/python2.4/Cookie.py
Solution
The path was missing, so adding
sys.path.append('/usr/lib/python2.4/')
solves the issue.
Post a Comment for "Django Mod-python Error"