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!

Categories: Tech

Leave a Reply

Your email address will not be published. Required fields are marked *

Hey You, Want More?Drop your email below and I'll send you a collection of my best Posts/Essays