我无法让crontab使用django归档执行站点备份。你知道吗
crontab文件:
0 5 * * * python ~/SBGBook/gbsite/manage.py archive
错误:
Traceback (most recent call last):
File "/home/jgates/SBGBook/gbsite/manage.py", line 17, in <module>
"Couldn't import Django. Are you sure it's installed and "
ImportError: Couldn't import Django. Are you sure it's installed and available $
如果我在python manage.py archive
目录中,gbsite/
命令非常有效,但是我猜这里有一些路径问题。这都是在生产服务器上的venv中运行的。你知道吗
尝试使用virtualenv中的python解释器:
相关问题 更多 >
编程相关推荐