0

I am trying to set up a History table that uses django signals in it in order to build a dashboard.

Inside my history models.py I have:

from django.dispatch import dispatcher
from django.db.models import signals
from project.models import Project

...

dispatcher.connect(update_dash, signal=signals.post_save, sender=Project)

However, .connect keeps coming up as a unresolved reference.

Oh by the way, I've used this site for a reference to start using signals. MercuryTide

Has anyone had this issue before or am I missing something?

Thanks,

Steve

TheLifeOfSteve
  • 3,208
  • 6
  • 37
  • 53

1 Answers1

3

That article is ancient as far as Django is concerned. Consult the latest documentation to see how we do things today.

Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358