From 1916f811a07d51105c6bd4e8f2c8fd1e3aafadb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= <sornjure@gmail.com> Date: Thu, 1 Aug 2024 00:26:43 +0200 Subject: [PATCH] Web --- README.md | 2 +- index.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index be8593d..c8f85c9 100644 --- a/README.md +++ b/README.md @@ -2547,7 +2547,7 @@ import flask ```python app = flask.Flask(__name__) # Returns app object. Put at the top. -app.run(host=None, port=None, debug=None) # Or: `$ flask --app <module> run` +app.run(host=None, port=None, debug=None) # Or: $ flask --app FILE run [--ARG[=VAL]] ``` * **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 02962d6..c4582f7 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@ <body> <header> - <aside>July 31, 2024</aside> + <aside>August 1, 2024</aside> <a href="https://gto76.github.io" rel="author">Jure Šorn</a> </header> @@ -2088,7 +2088,7 @@ print(<span class="hljs-string">f'<span class="hljs-subst">{python_url}</span>, <pre><code class="python language-python hljs">app = flask.Flask(__name__) <span class="hljs-comment"># Returns app object. Put at the top.</span> -app.run(host=<span class="hljs-keyword">None</span>, port=<span class="hljs-keyword">None</span>, debug=<span class="hljs-keyword">None</span>) <span class="hljs-comment"># Or: `$ flask --app <module> run`</span> +app.run(host=<span class="hljs-keyword">None</span>, port=<span class="hljs-keyword">None</span>, debug=<span class="hljs-keyword">None</span>) <span class="hljs-comment"># Or: $ flask --app FILE run [--ARG[=VAL]]</span> </code></pre> <ul> <li><strong>Starts the app at <code class="python hljs"><span class="hljs-string">'http://localhost:5000'</span></code>. Use <code class="python hljs"><span class="hljs-string">'host="0.0.0.0"'</span></code> to run externally.</strong></li> @@ -2932,7 +2932,7 @@ $ deactivate <span class="hljs-comment"># Deactivates the activ <footer> - <aside>July 31, 2024</aside> + <aside>August 1, 2024</aside> <a href="https://gto76.github.io" rel="author">Jure Šorn</a> </footer>