Update the example in README
This commit is contained in:
parent
2fab8a31ae
commit
54ae1cb0e9
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue