Python Forum
making a form purely with flask-wtf
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
making a form purely with flask-wtf
#7
(May-30-2024, 08:54 AM)robertkwild Wrote: sorry but why have you created a two documents a "test.py" and a "index.html" cant you have it all in one document
No(can but ugly),Flask use a templates/ folder for eg html/css/js files.
project_directory/
│
├── templates/
│   └── index.html
│
└── test.py
Run in project_directory/
flask --app test run
Also virtual environment is advisable when doing this.
Reply


Messages In This Thread
RE: making a form purely with flask-wtf - by snippsat - May-30-2024, 04:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Beta6 of my password flask-wtf web form robertkwild 3 1,142 Jul-02-2024, 10:30 AM
Last Post: robertkwild
  Show powershell errors in flask-wtf web form robertkwild 14 2,552 Jun-30-2024, 03:15 PM
Last Post: robertkwild
  Running powershell command in flask wtf form robertkwild 10 2,269 Jun-27-2024, 09:49 AM
Last Post: robertkwild
  using split in my flask wtf form robertkwild 1 772 Jun-11-2024, 05:19 PM
Last Post: deanhystad
  error while inserting values into a table from form in flask in postgreSQL sahilsiddharth 3 8,378 Jun-05-2017, 07:49 PM
Last Post: sahilsiddharth

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020