Once again, as a reminder, I encountered a subtle problem while developing with Django. It’s a simple problem, but it’s easy to ignore.
The specific error information is as follows:
ERRORS: ? : (staticfiles.E001) The STATICFILES_DIRS setting is not a tuple or list. HINT: Perhaps you forgot a trailing comma?
System check identified 1 issue (0 silenced).
The error is that our STATICFILES_DIRS was assigned to an array object in the wrong form:
Go to settings.py,
the
STATICFILES_DIRS=(os.path.join(BASE_DIR,’static’))
Instead of
STATICFILES_DIRS=[(os.path.join(BASE_DIR,’static’))]