My .py script works fine when executed from the "Bash console in virtualenv django17" like this:
$ python regenerate-cache.py
But when executing the script as a scheduled task it produces the following error:
Traceback (most recent call last):
File "/home/jorisvanleeuwen/veggi/regenerate-cache.py", line 4, in <module>
from django.core.wsgi import get_wsgi_application
ImportError: No module named wsgi
Is django not supported in scheduled scripts? Thank you for your time!