#28752: Prevent django.setup() from running multiple times
--------------------------------------+------------------------------------
     Reporter:  pascal chambon        |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Core (Other)          |                  Version:  1.11
     Severity:  Normal                |               Resolution:
     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 Carlton Gibson):

 Let's keep the discussion from #30536 here. (It's ≈the same ticket AFAICS,
 and the history here is informative.)

 [https://github.com/django/django/pull/11435 PR there is here].

 One additional element added there is to make the the `setup()` code
 ''pluggable''. (i.e. whilst we make `setup()` exit if run multiple times,
 allow user code to be run before/after as well.) A setting is proposed for
 this. ''MUST it be a setting…?''

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28752#comment:17>
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 post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.307296b0b80c926d0c32c17e77b1cd12%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to