Your STATICFILES_DIRS setting is not a tuple or list
生活随笔
收集整理的這篇文章主要介紹了
Your STATICFILES_DIRS setting is not a tuple or list
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
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'))]
總結(jié)
以上是生活随笔為你收集整理的Your STATICFILES_DIRS setting is not a tuple or list的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 词干提取器索引文本
- 下一篇: render与render_to_res