From 6e7e43e386c38c9670a0832481bce4835dfca7db Mon Sep 17 00:00:00 2001 From: Adam Jurkiewicz Pythonista Local Date: Wed, 18 Mar 2026 11:06:48 +0100 Subject: [PATCH] flask --- dzien_02/www/aplikacja_web.py | 5 ++- dzien_02/www/templates/plik.html | 73 ++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+), 2 deletions(-) create mode 100644 dzien_02/www/templates/plik.html diff --git a/dzien_02/www/aplikacja_web.py b/dzien_02/www/aplikacja_web.py index 86d2a58..86e2a36 100644 --- a/dzien_02/www/aplikacja_web.py +++ b/dzien_02/www/aplikacja_web.py @@ -1,4 +1,5 @@ -from flask import Flask +from flask import Flask, render_template + app = Flask("Adam") @@ -8,7 +9,7 @@ def index(): @app.route("/druga") def druga(): - return "

Welcome again!

" + return render_template('plik.html') if __name__ == "__main__": app.run(debug=True) \ No newline at end of file diff --git a/dzien_02/www/templates/plik.html b/dzien_02/www/templates/plik.html new file mode 100644 index 0000000..4b6efb3 --- /dev/null +++ b/dzien_02/www/templates/plik.html @@ -0,0 +1,73 @@ + + + + + + Moja Prosta Strona + + + + + +
+

Cześć! 👋

+

To jest prosta strona HTML, na której style CSS znajdują się bezpośrednio w sekcji <head>. Szybko, czysto i elegancko.

+ Dowiedz się więcej +
+ + + \ No newline at end of file