Created
April 3, 2013 06:37
-
-
Save jsleetw/5298927 to your computer and use it in GitHub Desktop.
Django use manage.py with command as crontab job tamplate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DJANGO_SETTINGS_MODULE=mysettings | |
export DJANGO_SETTINGS_MODULE | |
PYTHONPATH=/path/to/python_libs:/path/to/my_django_apps | |
export PYTHONPATH | |
/path/to/python /path/to/my_django_script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment