0PricingLogin
Django Academy · Lesson

post_save and pre_delete Signals

Run code when models change.

Signals in a Sentence

A signal lets one part of Django announce that something happened, so other code can react without being directly called. 

Why React to Events

Sometimes you want side effects when a model changes, like sending a welcome email after signup. Signals keep that reaction out of your save logic.

All lessons in this course

  1. post_save and pre_delete Signals
  2. Connecting Receivers Properly
  3. Writing Custom Middleware
  4. Middleware Order and process_view
← Back to Django Academy