Teil 19 Flask.

This commit is contained in:
Olli Graf
2023-07-21 12:15:49 +02:00
parent 63fee8c895
commit d6d3c54aa8
23 changed files with 976 additions and 38 deletions

View File

@@ -0,0 +1,19 @@
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return 'Ein erstes Hallo'
@app.route('/second')
def second():
return '<b>Ein zweites Hallo</b>'
if __name__ == '__main__':
app.run(host='0.0.0.0',port=8085, debug=True)

4
teil19/firsthello/setenv.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/bash
export FLASK_APP=first
export FLASK_ENV=development