DISQUS

Chris Pratt: Signals in Django: Stuff That’s Not Documented (Well)

  • Jökull · 1 year ago
    That's very useful. Nice usage of the thread library.
  • Joshua Blount · 1 year ago
    That was an incredibly clear code walk through. Feel free to write more about django just about anytime you want ;)

    Thanks!
  • petertron · 1 year ago
    Great! Thanks for the info.
  • Wes Winham · 1 year ago
    I really appreciate this tutorial. I've read all of the other signal documentation you linked, but this is the post I keep coming back to as a reference when I need to deal with signals.
  • coulix · 1 year ago
    if you dont want to user threading you could use the django-mailing app.
  • Chris Pratt · 1 year ago
    @Wes: I'm glad it helped you out. Surprising, Django's signal documentation is still rather lacking. With such a crucial aspect as this, it continually amazes me that so little writing is devoted to it. Sadly, this tutorial is now rather out of date if you're running the new Django 1.0 release. I'm hoping to update it or create another version in the near future, since it seems to have helped alot of people.

    @coulix: I'll look into that. When I first posted this 8 months ago, there was really nothing out there like that. A couple of queuing apps were starting to pop up, but most were in planning or alpha.
  • Philippe · 11 months ago
    Very clear and useful post!
  • mandric · 10 months ago
    Wondering why not submit this work as a patch to the signals documentation? Seems like a few examples on the signals page would be immensely useful.
  • Chris Pratt · 10 months ago
    Because then I'd lose all the nice link juice I get from this post to the Django documentation ;). Seriously, though, you're probably right; I should do that. If nothing else, it could be added to the Django Wiki.

    Actually, Django's signal documentation has improved greatly with Django's 1.0 milestone release, and my post is here is now a little out dated. I've been meaning to come back and update it. When I get around to doing that, I'll see if there's anything meaningful to add to Django's documentation, itself.

    Thanks for the suggestion.
  • Anibal · 4 months ago
    I think this is old, dispatcher seems not to have the method connect any more :(
  • timbull · 1 month ago
    Thanks for the post Chris, this was really useful just in understanding how to do asynchronous processing. I note the other posts that some of the exact content may be out of date now, but you've given me some great pointers in here to solve my problem.