I am using App Engine and the deferred library. But every once in a while my task fail with the following error:
Permanent failure attempting to execute task
Traceback (most recent call last):
File "/base/python_lib/versions/1/google/appengine/ext/deferred/deferred.py",
line 256, in post
run(self.request.body)
File "/base/python_lib/versions/1/google/appengine/ext/deferred/deferred.py",
line 122, in run
raise PermanentTaskFailure(e)
PermanentTaskFailure: Environment variable DJANGO_SETTINGS_MODULE is undefined.
I found a post saying the solution is to:
from google.appengine.ext.webapp import template
But I am not using the webapp framework, I'm using Django. What can I try?