4 ms·
> Applications can run code at startup, before Django does anything else, with the ready() method of their configuration. I have been waiting for something lik
by cmsimike 13y 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/#django.apps.AppConfig.ready https://docs.djangoproject.com/en/dev/ref/applications/#djan...
- hannes2000 13y agoyes! No more circular imports because of signal receivers being added to models.py. Super excited about this.
- StavrosK 13y agoGod, 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.