Skip to content
Myr

Touch up run_simple doc, #446.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ron DuPlain · committed by Ron DuPlain · parent 8740fff · Browse files · 1 file+5 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−4 removed

  • other:+5 added−4 removed

1 file+5 added−4 removed

modified:docs/patterns/appdispatch.rst+5 added-4 removed
28 unmodified lines
2930Note that :func:`run_simple <werkzeug.serving.run_simple>` is not intended for31use in production. Use a :ref:`full-blown WSGI server <deployment>`.3233In order to use the interactive debuggger, debugging must be enables both on 34the application and the simple server, here is the "hello world" example with debugging and 35:func:`run_simple <werkzeug.serving.run_simple>` :33In order to use the interactive debuggger, debugging must be enabled both on34the application and the simple server, here is the "hello world" example with35debugging and :func:`run_simple <werkzeug.serving.run_simple>`::3637 from flask import Flask38 from werkzeug.serving import run_simple39
4 unmodified lines
44 def hello_world():45 return 'Hello World!'4647 if __name__ == '__main__':48 run_simple('localhost', 5000, app, use_reloader=True, use_debugger=True, use_evalex=True)48 run_simple('localhost', 5000, app,49 use_reloader=True, use_debugger=True, use_evalex=True)505152Combining Applications53----------------------
135 unmodified lines