From 64537fe5721e8532a51a47038f3d9c35cb1d4ad4 Mon Sep 17 00:00:00 2001 From: Anika Date: Tue, 5 Mar 2024 14:00:25 +0100 Subject: [PATCH] finally seems to be working --- README.md | 8 +++++++- test.py => app.py | 5 ++++- templates/about.html | 8 ++++++++ templates/base.html | 2 +- templates/help.html | 9 +++++++-- 5 files changed, 27 insertions(+), 5 deletions(-) rename test.py => app.py (97%) create mode 100644 templates/about.html diff --git a/README.md b/README.md index 8a7dc6b..4fc27a5 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ # Fetenzentrale -Joa, kann Log schreiben und alerten. Nicht sehr kompliziert. \ No newline at end of file +## Aufsetzen + +- am besten in n venv + - `python`>=3.8 + - `flask` per `pip` installieren +- `flask run` + - wenn das nicht tut: `export FLASK_APP=app` (`set` statt`export` under Windows) diff --git a/test.py b/app.py similarity index 97% rename from test.py rename to app.py index 5e2bb2e..b818740 100644 --- a/test.py +++ b/app.py @@ -107,4 +107,7 @@ def processpAlarm(): @app.route("/help") def help(): - return render_template('help.html', logs = logs, alarms = activeAlarms, previousAlarms=previousAlarms) \ No newline at end of file + return render_template('help.html') +@app.route("/about") +def about(): + return render_template('about.html') \ No newline at end of file diff --git a/templates/about.html b/templates/about.html new file mode 100644 index 0000000..cca44bd --- /dev/null +++ b/templates/about.html @@ -0,0 +1,8 @@ +{% extends 'base.html' %} + +{% block content %} +

{% block title %} About {% endblock %}

+ +Bei Fragen/Anmerkungen/Problemen hmu: a_luetke17@cs.uni-kl.de + +{% endblock %} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index 4a0b3c4..9caebff 100644 --- a/templates/base.html +++ b/templates/base.html @@ -19,7 +19,7 @@