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?
settings.py:
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static')
]
STATICFILES_DIRS = (
os.path.join(BASE_DIR, '')
)
Thanks to @fsimonjetz for helping me answer this question I changed this:
STATICFILES_DIRS = (os.path.join(BASE_DIR, '')
)
to
STATICFILES_DIRS = (os.path.join(BASE_DIR, ''),)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With