Category : flask

I followed the tutorial at https://flask.palletsprojects.com/en/2.0.x/tutorial/factory/ and successfully created the project there. I then tried to apply this to my new project and I’m getting hung up right away. The database schema doesn’t seem to get read at any point. At other points in the code I tried to print the tables and got an ..

Read more

I am typing the command : set FLASK_APP =file_name.py and get no feedback(expected as far as I know), but than when I try to launch: flask db init I get error: Error Could not import ‘webapp’. I tried a lot of different ways to overcome this one, but nothing helped. enter image description here Source: ..

Read more

I have a perfectly functional website made using Flask/Python/SQLAlchemy, but after using it for a few minutes and closing the site, the attached Postgre database is left with the records I used during the just closed session, plus all the records stored from the previous sessions and those records have no further use and should ..

Read more