shabda wrote:
> I am trying to follow http://code.google.com/appengine/articles/django.html
> 
> Which has a line
> # Log errors.
> django.dispatch.dispatcher.connect(
>    log_exception, django.core.signals.got_request_exception)
> 
> but log_exception is not defined/imported, so it gives a NameError.

log_exception is defined immediately above the line you quote:
def log_exception(*args, **kwds):
   logging.exception('Exception in request:')

Kent


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to