Running custom Django commands via cron on WebFaction

Update: a much more detailed guide is right this way which might be easier to follow than my quick post below.

The typical way of running Django commands via cron is usually something like:

0 * * * * python /path/to/django/manage.py commandname

…but that won’t work on WebFaction. You have to tell it what your PYTHONPATH and DJANGO_SETTINGS_MODULE should be set to, as well as give it an absolute path to Python.

Here’s an example:

There’s some more info in this forum thread if you get stuck.