Unable to import WTForm class from one file to another
I am unable to import NamerForm from forms.py to controllers.py. Getting ImportError
How do I commit data from a flask form (inside of a modal) to an SQL Database?
I’m pretty new to Flask and struggling with transferring data from a form to an SQL Database. The form is within a modal, which works perfectly and will redirect back to the main page once the form is submitted. However, the data from the form is not transferred to the SQL Database that I have associated with this project. I’m sure I’m missing something quite simple, help would be appreciated! If any more code screenshots are needed please let me know.