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.
20 lines
460 B
Python
20 lines
460 B
Python
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())
|