Skip to content Skip to sidebar Skip to footer

Error When Aquiring Date Time Data On Flask App

Background What I would like to do is to implement a form to insert datetime with the specific data type (like 2019-10-23 22:38:18) on a web application written in Python Flask and

Solution 1:

The error is raised since you do not create a form object anywhere before referencing it when passing it into your render_template function.

As for the bad request, it could be caused by you closing your db.session the first time that endpoint is called. So any following calls to the endpoint will try to access the closed session, throwing an error.


Post a Comment for "Error When Aquiring Date Time Data On Flask App"