django-devserver icon indicating copy to clipboard operation
django-devserver copied to clipboard

Werkzeug is disabled and can't be turned on

Open szczav opened this issue 14 years ago • 1 comments

Hi

I installed ver 0.1.5 from easy_install and there is no way to turn on werkzeug. In one of the last revisions it was disabled by default and there is no option in runserver command to activate it. There is only --werkzeug param which "Tells Django to NOT use the Werkzeug interactive debugger.", but now it make no sense.

So, please change option to --werkzeug to activate werkzeug or make it active by default.

Workaround and possible resolution: in management/commands/runserver.py, line 34, change from: make_option('--werkzeug', action='store_false', dest='use_werkzeug', default=False, help='Tells Django to NOT use the Werkzeug interactive debugger.'), to make_option('--werkzeug', action='store_true', dest='use_werkzeug', default=False, help='Tells Django to use the Werkzeug interactive debugger.'), and now --werkzeug param makes dubugger active.

szczav avatar Jan 27 '11 09:01 szczav

It took me few minutes to realize this, --werkzeug option should be to enable it, not disable. Otherwise it should be --nowerkzeug so it consistent with other command options such as --noinput.

k4ml avatar Mar 12 '11 06:03 k4ml