Update the example in README

This commit is contained in:
Grey Li 2021-01-06 22:31:23 +08:00
parent 2fab8a31ae
commit 54ae1cb0e9

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