fix tz
This commit is contained in:
@@ -2,16 +2,20 @@ from flask import Flask, redirect, url_for, render_template
|
||||
from views.index_views import index
|
||||
from views.user_views import user
|
||||
from views.group_views import group
|
||||
from config import app_config
|
||||
from config import app_config as config_class
|
||||
from database import init_app
|
||||
|
||||
import logging, os
|
||||
from logging.handlers import RotatingFileHandler
|
||||
|
||||
# Instantiate config class
|
||||
app_config = config_class()
|
||||
|
||||
app = Flask(__name__)
|
||||
app.config.from_object(app_config)
|
||||
init_app(app)
|
||||
|
||||
# Logging
|
||||
if app.config.get('LOG_TO_FILE'):
|
||||
log_file = app.config.get('LOG_FILE_PATH', '/app/logs/app.log')
|
||||
os.makedirs(os.path.dirname(log_file), exist_ok=True)
|
||||
|
||||
Reference in New Issue
Block a user