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!

Written by : Ethan Drower

Subscribe To My Newsletter

BE NOTIFIED ABOUT BOOK SIGNING TOUR DATES

Thank you for your message. It has been sent.
There was an error trying to send your message. Please try again later.

Donec fringilla nunc eu turpis dignissim, at euismod sapien tincidunt.

Leave A Comment