This commit is contained in:
@ -6,6 +6,7 @@ from flask_restful import Api
|
||||
from sentry_sdk.integrations.flask import FlaskIntegration
|
||||
|
||||
from config import SENTRY_DSN, RELEASE_ID, RELEASEMODE, PORT, DEBUG
|
||||
import db
|
||||
from resources import *
|
||||
|
||||
"""
|
||||
@ -28,6 +29,10 @@ if SENTRY_DSN:
|
||||
|
||||
app = Flask(__name__)
|
||||
api = Api(app)
|
||||
db.init_app(app)
|
||||
|
||||
with app.app_context():
|
||||
db.create_all()
|
||||
|
||||
formatter = logging.Formatter(
|
||||
fmt="%(asctime)s - %(levelname)s - %(module)s - %(message)s"
|
||||
|
Reference in New Issue
Block a user