📜  相对路径 django - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:31.790000             🧑  作者: Mango

代码示例1
import os
from yourproject.settings import BASE_DIR
file_path = os.path.join(BASE_DIR, 'relative_path')