mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update __init__.py
This commit is contained in:
@@ -37,6 +37,8 @@ import core.mw as mw
|
||||
import config
|
||||
import utils.config as utils_config
|
||||
import thisdb
|
||||
# 初始化db
|
||||
setup.init()
|
||||
|
||||
# from threading import Lock
|
||||
# thread = None
|
||||
@@ -67,9 +69,6 @@ app.config['PERMANENT_SESSION_LIFETIME'] = timedelta(days=31)
|
||||
# app.config['SQLALCHEMY_DATABASE_URI'] = mw.getSqitePrefix()+config.SQLITE_PATH+"?timeout=20" # 使用 SQLite 数据库
|
||||
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
|
||||
|
||||
# 初始化db
|
||||
setup.init()
|
||||
|
||||
# BASIC AUTH
|
||||
app.config['BASIC_AUTH_OPEN'] = False
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user