1
0
forked from finn/site
site/backend/microblog.py
2024-08-01 06:35:28 -07:00

11 lines
238 B
Python

import sqlalchemy as sa
import sqlalchemy.orm as so
from app import app, db
from app.models import User, Post
@app.shell_context_processor
def make_shell_context():
return {'sa': sa, 'so': so, 'db': db, 'User': User, 'Post': Post}