1
0
forked from finn/site
site/backend/microblog.py

11 lines
238 B
Python
Raw Normal View History

2024-08-01 13:35:28 +00: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-08-01 06:56:27 +00:00