#26152: django.setup() hangs django if ever used in a module that's imported by
an
app
--------------------------------------+------------------------------------
Reporter: hjwp | Owner: nobody
Type: Cleanup/optimization | Status: closed
Component: Documentation | Version: 1.9
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by hjwp):
Hi all, can I propose a re-open? We just got bitten by this thing today
again, where calling django.setup() was messing with the logging setup in
weird and unpredictable ways in our unit tests.
It seems like the ideal version of django.setup() should be idempotent, or
only able to be called once?
Or should I open a different ticket?
--
Ticket URL: <https://code.djangoproject.com/ticket/26152#comment:13>
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/062.523917b6536830c1cf11b5ff2b6179b9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.