eis-website/app.py
Tahar Lamred & Theresa Nerz db457fab5b Add Flask app and ignore venv
2026-06-19 13:18:59 +02:00

24 lines
508 B
Python

from flask import Flask, render_template_string
app = Flask(__name__)
@app.route('/')
@app.route('/app/')
def home():
return render_template_string(
'''<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>Meine erste Flask-App</title>
</head>
<body>
<h1>Meine erste Flask-App</h1>
<p>Willkommen auf <strong>/app/</strong>.</p>
<p>Diese Seite läuft in Flask.</p>
</body>
</html>'''
)
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000, debug=True)