#32953: Enable optional auto-reloading for testserver
-------------------------------------+-------------------------------------
     Reporter:  Igor Bakutin         |                    Owner:  Igor
                                     |  Bakutin
         Type:  New feature          |                   Status:  assigned
    Component:  Core (Management     |                  Version:  4.0
  commands)                          |
     Severity:  Normal               |               Resolution:
     Keywords:  testserver reloader  |             Triage Stage:
                                     |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak):

 Thanks for the ticket.

 Replying to [ticket:32953 Igor Bakutin]:
 > `django/core/management/commands/testserver.py:39` has the following
 comment
 >
 > {{{
 > # Run the development server. Turn off auto-reloading because it causes
 > # a strange error -- it causes this handle() method to be called
 > # multiple times.
 > }}}

 However, this comment was added in
 9c55bbdef7f1717aa17f7ca17cb2396522426310 and that doesn't mean that 14
 years later it's still a desirable feature. `testserver` is intended to
 work with a database snapshot (loaded from fixtures) so it can be really
 fragile for any changes in models or migrations. I'm not sure if we can
 support it in a bulletproof way 🤔.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32953#comment:3>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.a1756ec30fedb4a7ed6d22ffdf692bb0%40djangoproject.com.

Reply via email to