摘要: BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 1. os.path.abspath(file)返回的是.py文件的绝对路径,也就是settings.py这个文件路径 2. os.path.dirname( 阅读全文
posted @ 2021-02-18 22:03 半日闲1 阅读(1273) 评论(0) 推荐(0) 编辑