如果是后台上传文件: setting配置: STATIC_URL = '/static/' STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'static'), os.path.join(BASE_DIR, "media"), ] # Django用户上传的都 Read More
posted @ 2020-03-08 14:16 PythonNew_Mr.Wang Views(1960) Comments(0) Diggs(0)