Dec-28-2022, 06:42 AM
Hi @kazu755 ,
No problem we will most certainly make your project run :)
I see a lot of bad Flask examples/tutorial on the WWW especially the launching part.
If you start with Flask I will recommend you to start from scratch with the official documentation
https://flask.palletsprojects.com/en/2.2.x/quickstart/
---
You should not put the HTML code in your .py Python/Flask file
Line 10 to 56. instead you want to use template file -->
https://flask.palletsprojects.com/en/2.2...-templates
You might find better documentation about Jinja "templating" (it's damn useful !)
---
You don't launch by
but trough Python
so either run.py (if python is associated with .py file)
or something like
No problem we will most certainly make your project run :)
I see a lot of bad Flask examples/tutorial on the WWW especially the launching part.
If you start with Flask I will recommend you to start from scratch with the official documentation
https://flask.palletsprojects.com/en/2.2.x/quickstart/
---
You should not put the HTML code in your .py Python/Flask file
Line 10 to 56. instead you want to use template file -->
https://flask.palletsprojects.com/en/2.2...-templates
You might find better documentation about Jinja "templating" (it's damn useful !)
---
You don't launch by
Flask file.py
but trough Python
so either run.py (if python is associated with .py file)
or something like
cd C:\users\username\documents C:\something\Python\Python3.11.exe run.pyCheer,
![[Image: NfRQr9R.jpg]](https://i.imgur.com/NfRQr9R.jpg)