feat: 添加FACE_PATH
This commit is contained in:
parent
e71d5af84a
commit
bc919c8970
|
@ -30,3 +30,4 @@ xlwt==1.3.0
|
|||
openpyxl==3.1.0
|
||||
cron-descriptor==1.2.35
|
||||
pymysql==1.0.3
|
||||
deepface==0.0.79
|
||||
|
|
|
@ -201,6 +201,12 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'dist/static')
|
|||
MEDIA_URL = '/media/'
|
||||
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
|
||||
|
||||
# 人脸库配置
|
||||
# 如果地址不存在,则自动创建
|
||||
FACE_PATH= os.path.join(BASE_DIR, 'media/face')
|
||||
if not os.path.exists(FACE_PATH):
|
||||
os.makedirs(FACE_PATH)
|
||||
|
||||
|
||||
# 邮箱配置
|
||||
EMAIL_HOST = conf.EMAIL_HOST
|
||||
|
@ -313,7 +319,7 @@ SWAGGER_SETTINGS = {
|
|||
# 创建日志的路径
|
||||
LOG_PATH = os.path.join(BASE_DIR, 'log')
|
||||
# 如果地址不存在,则自动创建log文件夹
|
||||
if not os.path.exists(os.path.join(LOG_PATH)):
|
||||
if not os.path.exists(LOG_PATH):
|
||||
os.makedirs(LOG_PATH)
|
||||
|
||||
LOGGING = {
|
||||
|
|
Loading…
Reference in New Issue