configuring default PYTHONPATH
Posted
by Shan
on Server Fault
See other posts from Server Fault
or by Shan
Published on 2009-09-25T19:00:30Z
Indexed on
2010/04/07
6:03 UTC
Read the original article
Hit count: 233
I have Django application and few Django commands that I would execute through cronjobs on CentOS 5.
Recently I updated my python-setuptools
package, which in-turn update python-devel
packages.
After performing this update, the default PYTHONPATH
settings for the Django commands executed through cronjob are different from the Django application which I execute from shell. Because of this mismatch my old Django cronjobs fail since the required libraries are not in path.
How do I resolve this issue and ensure that both the cronjob Django commands and the Django application have the same environment?
© Server Fault or respective owner