Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 547 Bytes

File metadata and controls

27 lines (19 loc) · 547 Bytes

Flask SQLAlchemy-lite

This simple Flask demo uses SQLite3 and Flask-SQLAlchemy-lite for database management. Manual pagination is implemented as this feature is not supported in the lite version.

Setup

Create Virtual Environment

 python3 -m venv venv

Install Dependence

 pip install -r requirements.txt 

Create database

from app import create_app, db
from app.models import Model, User, Holding
app = create_app()
with app.app_context():
    Model.metadata.create_all(bind=db.engine)