All Questions
Tagged with flask sqlalchemy
21 questions
1
vote
0
answers
72
views
A server side for a Premier League score guessing app
So I'm writing a Premier League score prediction app with Python, Flask and SQLalchemy and have almost finished the server side of it. I realised that no one has ever looked at my code and there could ...
2
votes
1
answer
179
views
Many to many relationship in Flask with SQLAlchemy
I want to create a family tree where the relationships are only godfather and godson. Is this the right way to declare the personn class ?
...
1
vote
1
answer
212
views
Flask-SQLAlchemy achieve 1 to many relationship that backfills parent when child is updated
Currently I have two tables Plan (plans) and User (users) and there is a foreign key constraint on users which references plans.id
When I create a new user I want to assign a plan to that user via ...
3
votes
1
answer
115
views
Flask Database Design with ORM
I am designing a Stock Currency application and for that, I created a database.
I searched for my question here first but the answerer told me to ask the same question here.
...
1
vote
1
answer
799
views
How to make the filtering queries more efficient using flask sqlalchemy?
I have a following table in a flask app
...
2
votes
0
answers
79
views
Basic flask template with sessions
This Flask app, which makes use of SQLAlchemy, a MySQL server which is only reachable via SSH and Flask-Login, is the base on which I want to write an application which has login protected pages.
...
1
vote
0
answers
243
views
querying users from table if user.id is found in another table
I am using flask with sqlAlchemy to connect with a postgresql database with two tables
Users table (id, name)
...
3
votes
0
answers
305
views
Is this a good way to process SQLAlchemy's uniqueness constraint violation in Flask?
I'm using Flask along with Flask-SQLAlchemy and Flask-WTF.
I have a model:
...
2
votes
1
answer
135
views
Website for allowing data evaluation from submission
I'm making a really basic website where users essentially just submit data into some forms and they will be able to review their data in another page. I feel like I'm going to be repeating myself far ...
7
votes
2
answers
2k
views
A simple library using Flask and SQLAlchemy
This is the main.py script that does most of the work of Adding movies (Movie objects) as well as modifying and removing:
...
3
votes
1
answer
2k
views
Slow Flask-SQLAlchemy query using association tables
I have two models in Flask-SQLAlchemy (Post and Comment) that have many-to-many relationship that is manifested in the third model (post_mentions):
...
3
votes
0
answers
379
views
Flask-SQLAlchemy model structure
I'm seeking a review of my Flask-SQLAlchemy model structure, particularly adherence to DB best practices, such as avoiding duplication, etc.
The models represent the relations between Departments, ...
2
votes
0
answers
152
views
REST backend app script for doing CRUD transactions
As a side project, I am working on Tiddly which is a simple Python(Flask) based app for a generic REST backend that could be used for CRUD transactions on any kind of database (using ...
3
votes
0
answers
2k
views
Simple Payment System Flask App
Can I please get some reviews and suggestions?
This is what this app does:
It picks user login from Users table and compare it with the post in the login ...
3
votes
1
answer
4k
views
Applying dynamic filters to a SQL query using Python conditional expressions
I wrote this piece of code to eliminate the need for multiple if then statements based on the filters from the incoming REST request.
If the request has category ...