diff --git a/README.md b/README.md index bf16cea..8828f1d 100644 --- a/README.md +++ b/README.md @@ -2547,8 +2547,8 @@ import flask ``` ```python -app = flask.Flask(__name__) # Returns app object. Run at the top. -app.run(host=None, port=None, debug=None) # Starts the app. Run at the bottom. +app = flask.Flask(__name__) # Returns app object. Put at the top. +app.run(host=None, port=None, debug=None) # Or: `$ flask --app run` ``` * **Starts the app at `'http://localhost:5000'`. Use `'host="0.0.0.0"'` to run externally.** * **Install a WSGI server like [Waitress](https://flask.palletsprojects.com/en/latest/deploying/waitress/) and a HTTP server such as [Nginx](https://flask.palletsprojects.com/en/latest/deploying/nginx/) for better security.** diff --git a/index.html b/index.html index cd21f57..0909a38 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@
- +
@@ -2087,8 +2087,8 @@ print(f'{python_url}, -
app = flask.Flask(__name__)                # Returns app object. Run at the top.
-app.run(host=None, port=None, debug=None)  # Starts the app. Run at the bottom.
+
app = flask.Flask(__name__)                # Returns app object. Put at the top.
+app.run(host=None, port=None, debug=None)  # Or: `$ flask --app <module> run`
 
  • Starts the app at 'http://localhost:5000'. Use 'host="0.0.0.0"' to run externally.
  • @@ -2932,7 +2932,7 @@ $ deactivate # Deactivates the activ diff --git a/pdf/index_for_pdf.html b/pdf/index_for_pdf.html index 09e99e9..810a230 100644 --- a/pdf/index_for_pdf.html +++ b/pdf/index_for_pdf.html @@ -103,7 +103,7 @@ pickle module, 25
    pillow library, 39-40
    plotting, 34, 44, 46, 47-48
    -print function, 22
    +print function, 14, 22
    profiling, 36-37
    progress bar, 34
    property decorator, 15
    diff --git a/pdf/index_for_pdf_print.html b/pdf/index_for_pdf_print.html index 97d99e2..7356641 100644 --- a/pdf/index_for_pdf_print.html +++ b/pdf/index_for_pdf_print.html @@ -103,7 +103,7 @@ pickle module, 25
    pillow library, 39-40
    plotting, 34, 44, 46, 47-48
    -print function, 22
    +print function, 14, 22
    profiling, 36-37
    progress bar, 34
    property decorator, 15