We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 455602d commit c9785b9Copy full SHA for c9785b9
encoding_convert.py
settings.py
@@ -1,17 +1,13 @@
1
from starlette.config import Config
2
import os
3
import shutil
4
-# import encoding_convert
5
6
# 配置文件.env
7
# 请将.env移动至data目录,方便docker部署
8
# 判断根目录下是否存在.env文件
9
if os.path.exists('.env'):
10
# 将文件复制到data目录
11
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')
15
16
config = Config("data/.env")
17
# 是否开启DEBUG模式
0 commit comments