サーバーでcronジョブをセットアップしようとしていて、cronタブに次の行を書きました:
DJANGO_SETTINGS_MODULE=settings_local PYTHONPATH=$HOME/django-locate:$HOME/locate/locate python manage.py testcommand
しかしvar/mail/myname
、manage.pyが見つからないというエラーが発生しています。
ここで何が間違っていますか?
これは私のcronジョブです:
class Command(BaseCommand):
args = "<test cron job>"
help = "writes locations from other server"
def handle(self,*args,**options):
self.stdout.write("cron job is running - it is just a test ")