Browse Source

Web

pull/187/head
Jure Šorn 9 months ago
parent
commit
3b1a215a9f
4 changed files with 8 additions and 8 deletions
  1. 4
      README.md
  2. 8
      index.html
  3. 2
      pdf/index_for_pdf.html
  4. 2
      pdf/index_for_pdf_print.html

4
README.md

@ -2547,8 +2547,8 @@ import flask
``` ```
```python ```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 <module> run`
``` ```
* **Starts the app at `'http://localhost:5000'`. Use `'host="0.0.0.0"'` to run externally.** * **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.** * **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.**

8
index.html

@ -54,7 +54,7 @@
<body> <body>
<header> <header>
<aside>May 17, 2024</aside>
<aside>May 18, 2024</aside>
<a href="https://gto76.github.io" rel="author">Jure Šorn</a> <a href="https://gto76.github.io" rel="author">Jure Šorn</a>
</header> </header>
@ -2087,8 +2087,8 @@ print(<span class="hljs-string">f'<span class="hljs-subst">{python_url}</span>,
</code></pre></div> </code></pre></div>
<pre><code class="python language-python hljs">app = flask.Flask(__name__) <span class="hljs-comment"># Returns app object. Run 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"># Starts the app. Run at the bottom.</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>
</code></pre> </code></pre>
<ul> <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> <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> <footer>
<aside>May 17, 2024</aside>
<aside>May 18, 2024</aside>
<a href="https://gto76.github.io" rel="author">Jure Šorn</a> <a href="https://gto76.github.io" rel="author">Jure Šorn</a>
</footer> </footer>

2
pdf/index_for_pdf.html

@ -103,7 +103,7 @@
<strong>pickle module, <a href="#pickle">25</a></strong><br> <strong>pickle module, <a href="#pickle">25</a></strong><br>
<strong>pillow library, <a href="#image">39</a>-<a href="#animation">40</a></strong><br> <strong>pillow library, <a href="#image">39</a>-<a href="#animation">40</a></strong><br>
<strong>plotting, <a href="#plot">34</a>, <a href="#series">44</a>, <a href="#dataframeplotencodedecode">46</a>, <a href="#plotly">47</a>-<a href="#displaysamultiaxislinechartoftotalcoronaviruscasesandchangesinpricesofbitcoindowjonesandgold">48</a></strong><br> <strong>plotting, <a href="#plot">34</a>, <a href="#series">44</a>, <a href="#dataframeplotencodedecode">46</a>, <a href="#plotly">47</a>-<a href="#displaysamultiaxislinechartoftotalcoronaviruscasesandchangesinpricesofbitcoindowjonesandgold">48</a></strong><br>
<strong>print function, <a href="#print">22</a></strong><br>
<strong>print function, <a href="#class">14</a>, <a href="#print">22</a></strong><br>
<strong>profiling, <a href="#profiling">36</a>-<a href="#profilingbyline">37</a></strong><br> <strong>profiling, <a href="#profiling">36</a>-<a href="#profilingbyline">37</a></strong><br>
<strong>progress bar, <a href="#progressbar">34</a></strong><br> <strong>progress bar, <a href="#progressbar">34</a></strong><br>
<strong>property decorator, <a href="#property">15</a></strong><br> <strong>property decorator, <a href="#property">15</a></strong><br>

2
pdf/index_for_pdf_print.html

@ -103,7 +103,7 @@
<strong>pickle module, 25</strong><br> <strong>pickle module, 25</strong><br>
<strong>pillow library, 39-40</strong><br> <strong>pillow library, 39-40</strong><br>
<strong>plotting, 34, 44, 46, 47-48</strong><br> <strong>plotting, 34, 44, 46, 47-48</strong><br>
<strong>print function, 22</strong><br>
<strong>print function, 14, 22</strong><br>
<strong>profiling, 36-37</strong><br> <strong>profiling, 36-37</strong><br>
<strong>progress bar, 34</strong><br> <strong>progress bar, 34</strong><br>
<strong>property decorator, 15</strong><br> <strong>property decorator, 15</strong><br>

Loading…
Cancel
Save