ERRORS:?: (staticfiles.E001) The STATICFILES_DIRS setting is not a tuple or

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'))]

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章