From a03f6a94ebd45453d0d6ff3c7fb5819452be9c3a Mon Sep 17 00:00:00 2001 From: "theo@manjaro" Date: Thu, 2 Dec 2021 20:14:13 +0100 Subject: [PATCH 1/4] Ajout de page d'erreur --- app.py | 7 +++++++ pages.py | 3 +++ templates/error.html | 11 +++++++++++ templates/main.html | 2 +- 4 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 templates/error.html diff --git a/app.py b/app.py index bf5dc42..7c4ec81 100644 --- a/app.py +++ b/app.py @@ -5,8 +5,15 @@ import pages app = Flask(__name__) @app.route('/') +@app.route('/home') +@app.route('/home/') def main(): return pages.main() +@app.errorhandler(404) +def error(e): + return pages.error() + + if __name__=="__main__": app.run(debug=True) diff --git a/pages.py b/pages.py index 35b94b5..a786077 100644 --- a/pages.py +++ b/pages.py @@ -5,3 +5,6 @@ import definitions as lib def main(): return render_template("main.html") + +def error(): + return render_template("error.html") diff --git a/templates/error.html b/templates/error.html new file mode 100644 index 0000000..f324eed --- /dev/null +++ b/templates/error.html @@ -0,0 +1,11 @@ + + + + + + +

Erreur !

+

Retour à la page d'accueil

+ + + diff --git a/templates/main.html b/templates/main.html index d7a89ef..fc5fbcc 100644 --- a/templates/main.html +++ b/templates/main.html @@ -1,7 +1,7 @@ - +

Bienvenue !

From 6192844c9443530db79ac7dcc60f96b91131711c Mon Sep 17 00:00:00 2001 From: "theo@manjaro" Date: Thu, 2 Dec 2021 20:17:23 +0100 Subject: [PATCH 2/4] Service du bon fichier index --- pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages.py b/pages.py index a786077..af35d37 100644 --- a/pages.py +++ b/pages.py @@ -4,7 +4,7 @@ import definitions as lib # Fonctions qui seront associées à des URLs def main(): - return render_template("main.html") + return render_template("index.html") def error(): return render_template("error.html") From e4dd5cb3c197168af9ccf45e212bb111ae444e7b Mon Sep 17 00:00:00 2001 From: batikano1 Date: Thu, 2 Dec 2021 20:23:05 +0100 Subject: [PATCH 3/4] =?UTF-8?q?base=20de=20donn=C3=A9e=20non=20fini?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site.db | Bin 0 -> 36864 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 site.db diff --git a/site.db b/site.db new file mode 100644 index 0000000000000000000000000000000000000000..f300121ea356ff9e68611da7ad6627d0cd96afb8 GIT binary patch literal 36864 zcmeI)J#W)M7zgk>+l`ad$rV+V6@^ka2+>mB6utljnW~}`D5*pxB;qCqF(giFy9EY@ zAjAY48xr3D35hR(#J~s>FfqWuz|skE7l%fvOrQg(t^TLlPM-6{&;2fza*69Jm*?D& zTQ{11!wIcZWQb5oPFofsL=#J@vrw^p+=+=zyU5s|ibjs_f0;2hh;AGvtZ2M64rg=h zNyf{*8l3r4W7I}+iPpc{P1Jt+UEN-Yw-N>2 z%;#yV5<1Iu?(?9s#{JGlIlEv_mu#yveP+(K3Y}=dnn8hIX+Gw00Izz00bZa0SG_<0uX?}?hqIl&}b^9CN#03 zsv?q({=-05G)hH4Nl-0CsiMg1|BdW-!oIRM>;-$q9b#WsLr&v58|4tQ$2jhb2xL_(Sn2ZbRalu4fa3Cf) zq-n!rq`_})Cb?hLrp8DpZhqmp70c)A+`Gv)YY!;eiEeG3iygw|n!i~;Ott*zuhyMt zQO^IxP5)3J009U<00Izz00bZa0SG_<0ub240+|2r;lV}MAOHafKmY;|fB*y_009U< z00JEW%>VILfB*y_009U<00Izz00bZa0SG_<0uX=z1Rwwb2tWV=5P$##AOHaf?0$it Dg}{EZ literal 0 HcmV?d00001 From 8d5919bdb071ffd896f5598750cba03107e4f966 Mon Sep 17 00:00:00 2001 From: Jaenai Rugengande Ihimbazwe Date: Thu, 2 Dec 2021 20:26:10 +0100 Subject: [PATCH 4/4] Maj temp bateau. --- templates/bateau_temp.html | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 templates/bateau_temp.html diff --git a/templates/bateau_temp.html b/templates/bateau_temp.html new file mode 100644 index 0000000..78e119c --- /dev/null +++ b/templates/bateau_temp.html @@ -0,0 +1,41 @@ + + + + + {{nom}} + + + +

{{nom}}}

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Nom{{NomBateau}}
Constructeur{{nom}}
Dimensions{{Dimensions}}
Installation{{Date}}
Condamnation{{Date}}
Origine{{ville}}
+

+ {{HistoireBateau}} +

+ + + \ No newline at end of file