Using a Python Virtualenv in Crontab to run a Django Command
I'm posting this as much for my sanity as for yours (I always forget this). If you want to automate django commands via crontab then make sure you use the following to activate your virtual environment.
The only gotcha here is that you must tell crontab to use /bin/bash. This is because regular /sh doesn't support the 'source' command that you'll need in order to activate the env.
Cheers!
https://gist.github.com/ethandrower/abcc62838095c1434b12f63d89cd0e3f