python使用和注意,python使用,错误:1.Your


错误:

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

评论关闭