Here's how we got it working. You'll have to get django loaded before the deferred call can be made. To do this, make a copy of the aep main.py (we used the name django_deferred.py) and change the new file to run the deferred.main() instead of the main django handler.
diff ./common/appenginepatch/main.py ./common/appenginepatch/ django_deferred.py 32,36c32,34 < # Create a Django application for WSGI. < application = django.core.handlers.wsgi.WSGIHandler() < < # Run the WSGI CGI handler with that application. < util.run_wsgi_app(application) --- > # set up deferrerd environment for app engine patch > from google.appengine.ext.deferred import deferred > deferred.main() Use the new deferred in you app.yaml file: handlers: - url: /_ah/queue/deferred script: common/appenginepatch/django_deferred.py secure: optional Hope that helps... On Tue, Jan 26, 2010 at 5:56 AM, Yoav Aviram <[email protected]> wrote: > Anyone successfully using deferred.defer with app-engine-patch? > If so please share. > -- > You received this message because you are subscribed to the Google Groups > "app-engine-patch" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<app-engine-patch%2Bunsubscrib > [email protected] > . > For more options, visit this group at >http://groups.google.com/group/app-engine-patch?hl=en. -- You received this message because you are subscribed to the Google Groups "app-engine-patch" 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/app-engine-patch?hl=en.
