diff --git a/README.md b/README.md index 4b2b062..6abefb0 100644 --- a/README.md +++ b/README.md @@ -2548,8 +2548,8 @@ import flask ``` ```python -app = flask.Flask(__name__) # Put above function definitions. -app.run(host=None, port=None, debug=None) # Run after function definitions. +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. ``` * **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 1097f5d..8390a84 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@
- +
@@ -2088,8 +2088,8 @@ print(f'{python_url}, -
app = flask.Flask(__name__)                # Put above function definitions.
-app.run(host=None, port=None, debug=None)  # Run after function definitions.
+
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.
 
  • Starts the app at 'http://localhost:5000'. Use 'host="0.0.0.0"' to run externally.
  • @@ -2933,7 +2933,7 @@ $ deactivate # Deactivates the activ