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

Kau*_*hik 4 python static

HI I am new to static files but I got this error called STATICFILES_DIRS setting is not a tuple or list. Which I do not understand as it is does not contain any commas. I hope someone can help me. Yes, I have imported os. Traceback:

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

settings.py:

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


STATICFILES_DIRS = (
    os.path.join(BASE_DIR, '')
    )
Run Code Online (Sandbox Code Playgroud)

Kau*_*hik 5

感谢@fsimonjetz 帮助我回答这个问题我改变了这一点:

STATICFILES_DIRS = (os.path.join(BASE_DIR, '')
Run Code Online (Sandbox Code Playgroud)

 STATICFILES_DIRS = (os.path.join(BASE_DIR, ''),)
Run Code Online (Sandbox Code Playgroud)