Merge pull request #3866 from greyli/improve-readme-example

Update the example in README
This commit is contained in:
Grey Li 2021-01-06 18:57:31 -06:00 committed by GitHub
commit 7f206913e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@ Install and update using `pip`_:
.. code-block:: text
pip install -U Flask
$ pip install -U Flask
A Simple Example
@ -28,6 +28,7 @@ A Simple Example
.. code-block:: python
# save this as app.py
from flask import Flask
app = Flask(__name__)
@ -38,9 +39,8 @@ A Simple Example
.. code-block:: text
$ env FLASK_APP=hello.py flask run
* Serving Flask app "hello"
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
$ flask run
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
Contributing