Skip to content
Myr

further improved documentation

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

authored by Armin Ronacher · committed by Armin Ronacher · parent 574e81f · Browse files · 1 file+24 added−0 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+24 added−0 removed

  • other:+24 added−0 removed

1 file+24 added−0 removed

modified:docs/quickstart.rst+24 added
50 unmodified lines
51 local server with our application. The ``if __name__ == '__main__':``52 makes sure the server only runs if the script is executed directly from53 the Python interpreter and not used as imported module.5455To stop the server, hit control-C.565758Debug Mode59----------6061Now that :meth:`~flask.Flask.run` method is nice to start a local62development server, but you would have to restart it manually after each63change you do to code. That is not very nice and Flask can do better. If64you enable the debug support the server will reload itself on code changes65and also provide you with a helpful debugger if things go wrong.6667There are two ways to enable debugging. Either set that flag on the68applciation object::6970 app.debug = True71 app.run()7273Or pass it to run::7475 app.run(debug=True)7677Both will have exactly the same effect.787980Routing81-------8283As you have seen above, the :meth:`~flask.Flask.route` decorator is used
447 unmodified lines