首页 > 编程语言 > 详细

python使用和注意

时间:2018-08-29 12:50:02      阅读:170      评论:0      收藏:0      [点我收藏+]

错误:

1.Your STATICFILES_DIRS setting is not a tuple or list; "

ImproperlyConfigured: Your STATICFILES_DIRS setting is not a tuple or list; perhaps you forgot a trailing comma?

解决方案:

找到settings.py文件,

把STATICFILES_DIRS=(os.path.join(BASE_DIR,‘static‘))

改为STATICFILES_DIRS=[(os.path.join(BASE_DIR,‘static‘))]

python使用和注意

原文:https://www.cnblogs.com/GainLoss/p/9552688.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!