Skip to content

Commit

Permalink
fix issues with comments
Browse files Browse the repository at this point in the history
  • Loading branch information
elblogbruno committed Aug 9, 2021
1 parent 705db9f commit 2a721b5
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@


class Config:
# 调试模式

DEBUG = True
# session加密秘钥
SECRET_KEY = "fM3PEZwSRcbLkk2Ew82yZFffdAYsNgOddWoANdQo/U3VLZ/qNsOKLsQPYXDPon2t"

MAX_CONTENT_LENGTH = 200 * 1024 * 1024
Expand All @@ -21,24 +20,19 @@ class Config:
DROPZONE_PARALLEL_UPLOADS=3 # set parallel amount
DROPZONE_UPLOAD_MULTIPLE=True # enable upload multiple

# session过期时间
PERMANENT_SESSION_LIFETIME = timedelta(days=7)


class DevelopmentConfig(Config):
# 开发模式配置
DEBUG = True
LOG_LEVEL = logging.DEBUG
UPLOAD_FOLDER = UPLOAD_FOLDER

class ProductionConfig(Config):
# 上线配置
# 关闭调试
DEBUG = False
LOG_LEVEL = logging.ERROR # 日志级别
LOG_LEVEL = logging.ERROR


# 配置字典,键:配置
config_dict = {
'dev': DevelopmentConfig,
'pro': ProductionConfig
Expand Down

0 comments on commit 2a721b5

Please sign in to comment.