#31658: Performing SQL queries in AppConfig.ready(). -------------------------------------+------------------------------------- Reporter: Ying Wang | Owner: nobody Type: New feature | Status: closed Component: Core (Other) | Version: 3.0 Severity: Normal | Resolution: wontfix Keywords: database, | Triage Stage: migrations, lifecycle, hooks | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by felixxm):
* status: new => closed * resolution: => wontfix * component: Migrations => Core (Other) Comment: Database operations shouldn't be performed at module loading time, you can find a warning in [https://docs.djangoproject.com/en/stable/ref/applications/#django.apps.AppConfig.ready AppConfig.ready() docs] (see related #30424). We don't want to encourage user to do this. -- Ticket URL: <https://code.djangoproject.com/ticket/31658#comment:1> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/066.db9291f2fcb6040c9334daa2cf51b90b%40djangoproject.com.