Added a website that is made with the help of Flask
This commit is contained in:
parent
370cc50d3d
commit
944bcecf4c
15
Visual Studio Code Projects/hello-flask/hello.py
Normal file
15
Visual Studio Code Projects/hello-flask/hello.py
Normal file
@ -0,0 +1,15 @@
|
||||
from flask import Flask
|
||||
app = Flask(__name__)
|
||||
|
||||
print(__name__)
|
||||
|
||||
@app.route('/')
|
||||
def hello_world():
|
||||
return 'Hello, World!'
|
||||
|
||||
@app.route('/bye')
|
||||
def say_bye():
|
||||
return "bye"
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run()
|
||||
Loading…
Reference in New Issue
Block a user