Skip to content
Myr

Updated docs for external server information.

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

This fixes #14.

authored by Armin Ronacher · committed by Armin Ronacher · parent a862ead · Browse files · 2 files+22 added−9 removed
This commit

State

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

Diff stats

2 files+22 added−9 removed

  • other:+22 added−9 removed

2 files+22 added−9 removed

modified:docs/tutorial/setup.rst+4 added-9 removed
55 unmodified lines
56without problems. When you head over to the server you will get an 40457page not found error because we don't have any views yet. But we will58focus on that a little later. First we should get the database working.5960.. admonition:: Troubleshooting60.. admonition:: Externally Visible Server6162 If you notice later that the browser cannot connect to the server63 during development, you might want to try this line instead::6465 app.run(host='127.0.0.1')6667 In a nutshell: Werkzeug starts up as IPv6 on many operating systems by68 default and not every browser is happy with that. This forces IPv469 usage.62 Want your server to be publically available? Check out the63 :ref:`externally visible server <public-server>` section for more64 information.
modified:docs/quickstart.rst+18 added
52 unmodified lines
53 the Python interpreter and not used as imported module.5455To stop the server, hit control-C.5657.. _public-server:5859.. admonition:: Externally Visible Server6061 If you run the server you will notice that the server is only available62 from your own computer, not from any other in the network. This is the63 default because in debugging mode a user of the application can execute64 arbitrary Python code on your computer. If you have `debug` disabled65 or trust the users on your network, you can make the server publicly66 available.6768 Just change the call of the :meth:`~flask.Flask.run` method to look69 like this::7071 app.run(host='0.0.0.0')7273 This tells your operating system to listen on a public IP.747576Debug Mode77----------7879Now that :meth:`~flask.Flask.run` method is nice to start a local
557 unmodified lines