You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
459 B
Python
19 lines
459 B
Python
3 years ago
|
import os
|
||
|
import os
|
||
|
|
||
|
import app
|
||
|
from app import create_app, db
|
||
|
from app.models import User, Role, Students, Permission, Post, Comment, Like, Notification, Transaction, Activity
|
||
|
|
||
|
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
|
||
|
|
||
|
app.app_context().push()
|
||
|
print(app.config)
|
||
|
print(app.app_context())
|
||
|
|
||
|
print(User.query.all())
|
||
|
print(Role.query.all())
|
||
|
print(Students.query.all())
|
||
|
print(Post.query.all())
|
||
|
print(Comment.query.all())
|
||
|
print(Activity.query.all())
|