Skip to content

Commit c9785b9

Browse files
committed
delete:encoding convert
1 parent 455602d commit c9785b9

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

encoding_convert.py

Lines changed: 0 additions & 22 deletions
This file was deleted.

settings.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
from starlette.config import Config
22
import os
33
import shutil
4-
# import encoding_convert
54

65
# 配置文件.env
76
# 请将.env移动至data目录,方便docker部署
87
# 判断根目录下是否存在.env文件
98
if os.path.exists('.env'):
109
# 将文件复制到data目录
1110
shutil.copy('.env', 'data/.env')
12-
# if os.path.exists('data/.env'):
13-
# # 获取data目录下的.env文件编码,如果为utf-8编码,就转换为gbk编码
14-
# encoding_convert.convert_encoding('./data/.env')
1511

1612
config = Config("data/.env")
1713
# 是否开启DEBUG模式

0 commit comments

Comments
 (0)