TheLifeOfSteve
TheLifeOfSteve

Reputation: 3288

Issue with connecting django signals

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

Upvotes: 0

Views: 459

Answers (1)

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798716

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

Upvotes: 3

Related Questions