Setting up crontab for my Django Application
问题 I had an issue with setting up crontab for my Django application for a week and I have almost figured out the same. (Issue linked with Unable to make a function call using Django-cron) My crontab -e syntax is * * * * * /Users/ashwin/dashboard/proj_application/exec.sh >> /Users/ashwin/dashboard/proj_application/data.log 2>&1 And in my exec.sh, I have #!/bin/bash cd "$(dirname "$0")"; CWD="$(pwd)" echo $CWD python -c 'import proj_application.cron as cron; cron.test()' And in cron.py , from