Django signals doesn't work

Otiginal answer for Django < 1.7:

You should include:

import signals

to __init__.py file of your application.

Edit: Django >= 1.7:

Signals can be registered in django.apps.AppConfig.ready as described in Signals documentation and AppConfig doc

Where should this code live?

Strictly speaking, signal handling and registration code can live anywhere you like, although it’s recommended to avoid the application’s root module and its models module to minimize side-effects of importing code.

In practice, signal handlers are usually defined in a signals submodule of the application they relate to. Signal receivers are connected in the ready() method of your application configuration class. If you’re using the receiver() decorator, import the signals submodule inside ready().


I dont know if the paste is wrong, but in that code your model is named Avaliacao and not Aval, The Model and the sender argument has to match