site/backend/microblog.py

11 lines
238 B
Python
Raw Normal View History

2024-08-01 06:35:28 -07:00
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}
2024-07-31 23:56:27 -07:00