Django settings小要点
from django.conf import settings # 引入这个settings 如果查找属性,先到用户自己的settings里找,找不到再去from django.conf import globl_settings里找 from day63 import settings # path = os.path.join(settings.BASE_DIR, 'statics', 'img', file_name) # file_name = file_obj.name