Django App Engine Doc Fix

February 6th, 2009

For those setting up Django on Google App Engine on version after the signals refactor, the following fix is needed for the code supplied by Google.

# Log errors.
django.dispatch.dispatcher.connect(
   log_exception, django.core.signals.got_request_exception)

# Unregister the rollback event handler.
django.dispatch.dispatcher.disconnect(
    django.db._rollback_on_exception,
    django.core.signals.got_request_exception)

becomes:

# Log errors.
django.dispatch.Signal.connect(
   django.core.signals.got_request_exception, log_exception)

# Unregister the rollback event handler.
django.dispatch.Signal.disconnect(
    django.core.signals.got_request_exception,
    django.db._rollback_on_exception)

Comments are disabled. If that bothers you, please contact me on twitter at @justinlilly and let me know.