Professional Documents
Culture Documents
I. First create project and install flask. Please follow instruction from official documentation.
- pip install flask-sqlalchemy and pip install Flask (if pip doesn’t found use pip3)
I. Many to Many relationship between two tables is achieved by adding an association table such that
it has two foreign keys - one from each table’s primary key. Moreover, classes mapping to the two
tables have an attribute with a collection of objects of other association tables assigned as secondary
attribute of relationship() function.
https://michaelcho.me/article/many-to-many-relationships-in-sqlalchemy-models-flask
useful links
III. https://flask-sqlalchemy.palletsprojects.com/en/2.x/quickstart/
IV. https://www.youtube.com/playlist?list=PLXmMXHVSvS-BlLA5beNJojJLlpE0PJgCW