Difference between revisions of "Simple Flask App"
Jump to navigation
Jump to search
PeterHarding (talk | contribs) (Created page with "<pre> </pre> Category:Flask") |
PeterHarding (talk | contribs) |
||
Line 1: | Line 1: | ||
<pre> | <pre> | ||
from flask import Flask | |||
app = Flask(__name__) | |||
@app.route("/") | |||
def hello_world(): | |||
return "<p>Hello, World!</p>" | |||
</pre> | </pre> | ||
[[Category:Flask]] | [[Category:Flask]] |
Latest revision as of 12:36, 23 October 2021
from flask import Flask app = Flask(__name__) @app.route("/") def hello_world(): return "<p>Hello, World!</p>"