(Apr-03-2018, 08:09 AM)Prince_Bhatia Wrote: but i have already connected it with the database...it is just not able to submit the dataIt may not be connected,look at link in your error.
@Background on this error at: http://sqlalche.me/e/rvf5
Quote:Exception raised for errors that are related to theI have tested and done a lot with databases in Flask,but i would not deal with SQLAlchemy directly when Flask-SQLAlchemy dos this job so good.database interface
rather than the database itself.
This error is a DBAPI Error and originates from the database driver (DBAPI), not SQLAlchemy itself.
The InterfaceError is sometimes raised by drivers in the context of thedatabase connection being dropped, or not being able to connect to the database
.
For tips on how to deal with this, see the section Dealing with Disconnects.
Quote:@Flask-SQLAlchemy
It aims to simplify using SQLAlchemy with Flask by providing useful defaults and extra helpers that make it easier to accomplish common tasks.