Merge pull request #3866 from greyli/improve-readme-example
Update the example in README
This commit is contained in:
commit
7f206913e1
1 changed files with 4 additions and 4 deletions
|
|
@ -20,7 +20,7 @@ Install and update using `pip`_:
|
||||||
|
|
||||||
.. code-block:: text
|
.. code-block:: text
|
||||||
|
|
||||||
pip install -U Flask
|
$ pip install -U Flask
|
||||||
|
|
||||||
|
|
||||||
A Simple Example
|
A Simple Example
|
||||||
|
|
@ -28,6 +28,7 @@ A Simple Example
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
|
# save this as app.py
|
||||||
from flask import Flask
|
from flask import Flask
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
@ -38,9 +39,8 @@ A Simple Example
|
||||||
|
|
||||||
.. code-block:: text
|
.. code-block:: text
|
||||||
|
|
||||||
$ env FLASK_APP=hello.py flask run
|
$ flask run
|
||||||
* Serving Flask app "hello"
|
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
|
||||||
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
|
|
||||||
|
|
||||||
|
|
||||||
Contributing
|
Contributing
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue