Category : flask-sqlalchemy

Struggling a bit with the below. I have a simple HTML page with 3 Forms, User, Startdate and EndDate. The code is as follows : <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>date picker</title> </head> <body> <h1>Make A Short URL</h1> <form action="/" method="post"> <label for="name">Enter Your Name</label> <input type="text" name="name" value="" required> <label for="date1">Enter date ..

Read more

I really don’t have a clue of what is going on that i can’t filter this query, tried filter_by() and filter() both return the same error, it is probably a stupid mistake that i’m failing to notice, your help would be really appreciated. The MariaDB(MySQL) table structure is +————–+————–+——+—–+———+—————-+ | Field | Type | Null ..

Read more

I have a flask app that connects with mysql using salalchemy. A strange error happens on DB query. `Traceback (most recent call last): File "/home/faisal/Desktop/work/nesting-app/env/lib/python3.8/site-packages/sqlalchemy/util/_collections.py", line 1008, in call return self.registry[key] KeyError: <greenlet.greenlet object at 0x7f22a0936a90 (otid=0x7f22a08ef100) current active started main> During handling of the above exception, another exception occurred: Traceback (most recent call last): ..

Read more