python操作django报错staticfiles.E002
2019-05-10     loonlog     1851     0
本文目录
部署django时候,用python操作django报错 用类似以下指令的时候 python manage.py makemigrations python manage.py migrate python manage.py runserver 报错: ERRORS: ?: (staticfiles.E002) The STATICFILES_DIRS setting should not contain the STATIC_ROOT setting. 错误原因有可能是在settings中静态文件目录设置的有问题 STATIC_ROOT=os.path.join(BASE_DIR,"static/")#错误 STATIC_ROOT=os.path.join(BASE_DIR,"/static/")#正确
python操作django报错staticfiles.E002
http://loonlog.com/2019/5/10/pythond-jango-staticfilese002/
http://loonlog.com/2019/5/10/pythond-jango-staticfilese002/
评论列表,共 0 条评论
暂无评论