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 @@