#24312: Make it possible to import models safely at any time
----------------------------------------+-----------------------------
               Reporter:  aaugustin     |          Owner:  nobody
                   Type:  New feature   |         Status:  new
              Component:  Core (Other)  |        Version:  master
               Severity:  Normal        |       Keywords:  app-loading
           Triage Stage:  Accepted      |      Has patch:  0
    Needs documentation:  0             |    Needs tests:  0
Patch needs improvement:  0             |  Easy pickings:  0
                  UI/UX:  0             |
----------------------------------------+-----------------------------
 Ideally one could safely import models anytime, but they just wouldn't be
 available in the app registry or register themselves with the ORM (e.g.
 attach related managers to other models) until/unless their app were
 installed. (The general principle being that errors on import, or having
 to be careful what you import when, is an unfortunate smell due to
 reliance on import side effects.)

 (copied from https://code.djangoproject.com/ticket/21680#comment:12)

--
Ticket URL: <https://code.djangoproject.com/ticket/24312>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.15f25bed57454462d213e49cd4869908%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to