Hacker News new | ask | show | jobs
by cmsimike 4536 days ago
> Applications can run code at startup, before Django does anything else, with the ready() method of their configuration.

I have been waiting for something like this for a very long time. No more wondering where signals should go. [0]

[0]https://docs.djangoproject.com/en/dev/ref/applications/#djan...

2 comments

God, yes. I even asked for a signals.py so they could be declared there, but this is even better. I'm very excited about this.
yes! No more circular imports because of signal receivers being added to models.py. Super excited about this.