enable color log when dev

This commit is contained in:
Son NK 2021-03-08 12:09:10 +01:00
parent 796ad58dca
commit bc69e11f9b
1 changed files with 2 additions and 1 deletions

View File

@ -26,7 +26,7 @@ from sentry_sdk.integrations.flask import FlaskIntegration
from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
from werkzeug.middleware.proxy_fix import ProxyFix
from app import paddle_utils, s3
from app import paddle_utils, s3, config
from app.admin_model import (
SLAdminIndexView,
UserAdmin,
@ -823,6 +823,7 @@ window.location.href = "/";
def local_main():
config.COLOR_LOG = True
app = create_app()
# enable flask toolbar