Browse Source

Web

pull/188/head
Jure Šorn 9 months ago
parent
commit
1916f811a0
2 changed files with 4 additions and 4 deletions
  1. 2
      README.md
  2. 6
      index.html

2
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.**

6
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 &lt;module&gt; 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>

Loading…
Cancel
Save