python使用和注意

2021-07-10 21:06

阅读:550

标签:rail   pat   lis   perl   注意   dir   settings   方案   错误   

错误:

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使用和注意

标签:rail   pat   lis   perl   注意   dir   settings   方案   错误   

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


评论


亲,登录后才可以留言!