↧
Answer by 301_Moved_Permanently for A simple library using Flask and SQLAlchemy
Your database management is kind of a mess:SQLAlchemy recommend to keep your sessions scope the same than your requests scope;Having a single, global, session and closing it after a request mean that...
View ArticleAnswer by Richard Neumann for A simple library using Flask and SQLAlchemy
Document with docstrings.Your functions and ORM models are currently not providing any useful documentation regarding their respective function within your program.Don't initialize the database on...
View ArticleA 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:from flask import Flask, render_template, request, flash, url_for,...
View Article