#27522: ./manage runserver --nostatic doesn't return a traceback
-------------------------------------+-------------------------------------
     Reporter:  Jeroen van Veen      |                    Owner:  nobody
         Type:  Bug                  |                   Status:  assigned
    Component:  Core (Management     |                  Version:  1.10
  commands)                          |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Jeroen van Veen):

 This is a workaround:


 {{{
 --- __init__.py.orig    2016-11-22 09:58:38.806209538 +0100
 +++ __init__.py 2016-11-22 09:58:47.656120244 +0100
 @@ -323,6 +323,10 @@
                      apps.all_models = defaultdict(OrderedDict)
                      apps.app_configs = OrderedDict()
                      apps.apps_ready = apps.models_ready = apps.ready =
 True
 +                    # Execute the runserver command, but strip off
 additional
 +                    # parameters that cause the argument parser to fail.
 +
 self.fetch_command(subcommand).run_from_argv(self.argv[0:2])
 +                    return

              # In all other cases, django.setup() is required to succeed.
              else:
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/27522#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 [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/066.7c7a339cd648964279f0d280bb6b11e7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to