* **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.**
<pre><codeclass="python language-python hljs">app = flask.Flask(__name__) <spanclass="hljs-comment"># Returns app object. Run at the top.</span>
app.run(host=<spanclass="hljs-keyword">None</span>, port=<spanclass="hljs-keyword">None</span>, debug=<spanclass="hljs-keyword">None</span>) <spanclass="hljs-comment"># Starts the app. Run at the bottom.</span>
<pre><codeclass="python language-python hljs">app = flask.Flask(__name__) <spanclass="hljs-comment"># Returns app object. Put at the top.</span>
<li><strong>Starts the app at <codeclass="python hljs"><spanclass="hljs-string">'http://localhost:5000'</span></code>. Use <codeclass="python hljs"><spanclass="hljs-string">'host="0.0.0.0"'</span></code> to run externally.</strong></li>
<li><strong>Starts the app at <codeclass="python hljs"><spanclass="hljs-string">'http://localhost:5000'</span></code>. Use <codeclass="python hljs"><spanclass="hljs-string">'host="0.0.0.0"'</span></code> to run externally.</strong></li>