mirror of
https://github.com/miguelgrinberg/microblog.git
synced 2025-12-08 18:02:07 +00:00
13 lines
369 B
Python
13 lines
369 B
Python
import sqlalchemy as sa
|
|
import sqlalchemy.orm as so
|
|
from app import create_app, db
|
|
from app.models import User, Post, Message, Notification, Task
|
|
|
|
app = create_app()
|
|
|
|
|
|
@app.shell_context_processor
|
|
def make_shell_context():
|
|
return {'sa': sa, 'so': so, 'db': db, 'User': User, 'Post': Post,
|
|
'Message': Message, 'Notification': Notification, 'Task': Task}
|