I have the same problem... I use template in my app and simplejson in django.utils. I put them all at the top. But I still get the error. It works fine on my dev env.
On Dec 3 2009, 6:50 pm, "Nick Johnson (Google)" <[email protected]> wrote: > Hi gadgster, > > This happens when a deferred task is the first request to a new interpreter. > Something loaded (directly or indirectly) from the module containing your > deferred task is importing part of Django. Try adding the following to the > top of the module containing your deferred function: > > from google.appengine.ext.webapp import template > > -Nick > > > > On Thu, Dec 3, 2009 at 10:43 AM, gadgster <[email protected]> wrote: > > Hello, > > > I do use Django templates in my App but I'm not using them in the > > defered class or the module that class is in. I see the error after a > > variable number of deferred requests have been made. Could it be > > something to do with warming-up a new interpreter? > > > Richard > > > On Dec 3, 10:37 am, "Nick Johnson (Google)" <[email protected]> > > wrote: > > > Hi gadgster, > > > > Are you using Django templates? The most likely reason for this is that > > > you're importing the templates module in the wrong order from the module > > > containing your deferred function. > > > > -Nick > > > > On Thu, Dec 3, 2009 at 9:28 AM, gadgster <[email protected]> wrote: > > > > Hello, > > > > > I've been trying out the deferred library by using the a version of > > > > the Mapper example described here: > > > >http://code.google.com/appengine/articles/deferred.html > > > > > It is working fine in the test environment but when I try it on app > > > > engine on a kind with about 100,000 entities, I get the exception > > > > below after an arbitrary number of entities have been processed. > > > > > Permanent failure attempting to execute task > > > > Traceback (most recent call last): > > > > File "/base/python_lib/versions/1/google/appengine/ext/deferred/ > > > > deferred.py", line 255, 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. > > > > > This seems to be at the point at which the deferred function is un- > > > > pickled. I don't understand the error - I don't even use Django. Any > > > > suggestions? > > > > > Regards > > > > Richard > > > > > -- > > > > > You received this message because you are subscribed to the Google > > Groups > > > > "google-appengine-python" group. > > > > To post to this group, send email to > > > > [email protected]. > > > > To unsubscribe from this group, send email to > > > > [email protected]<google-appengine-python%[email protected]> > > <google-appengine-python%[email protected]<google-appengine-python%[email protected]> > > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-appengine-python?hl=en. > > > > -- > > > Nick Johnson, Developer Programs Engineer, App Engine > > > Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration > > Number: > > > 368047 > > > -- > > > You received this message because you are subscribed to the Google Groups > > "google-appengine-python" group. > > To post to this group, send email to > > [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<google-appengine-python%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-appengine-python?hl=en. > > -- > Nick Johnson, Developer Programs Engineer, App Engine > Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: > 368047 -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
