STATICFILES_DIRS 设置不是元组或列表。尽管它不包含逗号

The STATICFILES_DIRS setting is not a tuple or list. Eventhough it did not contain a comma

嗨,我是 静态文件 的新手,但我遇到了这个名为 STATICFILES_DIRS setting is not a tuple or list 的错误。我不明白,因为 它不包含任何逗号 。我希望有一个人可以帮助我。是的,我导入了 os。 回溯:

ERRORS:
?: (staticfiles.E001) The STATICFILES_DIRS setting is not a tuple or list.
        HINT: Perhaps you forgot a trailing comma?

settings.py:

STATICFILES_DIRS = [
    os.path.join(BASE_DIR, 'static')
]


STATICFILES_DIRS = (
    os.path.join(BASE_DIR, '')
    )

感谢@fsimonjetz 帮我回答这个问题我改了这个:

STATICFILES_DIRS = (os.path.join(BASE_DIR, '')

)

 STATICFILES_DIRS = (os.path.join(BASE_DIR, ''),)