摘要: 通用方法: 1、先去配置文件中写下面的一句配置 MEDIA_ROOT = os.path.join(BASE_DIR, 'media') 2、导入模块以及配置文件 from django.views.static import serve from xxx(你的项目名) import setting 阅读全文
posted @ 2020-01-20 16:23 alen_zhan 阅读(278) 评论(0) 推荐(0) 编辑
返回顶部