[Fixed]-Django The STATICFILES_DIRS setting should not contain the STATIC_ROOT setting


Maybe this will help:

STATIC_URL = '/static/'
if not DEBUG:
    STATIC_ROOT = ''
    os.path.join(BASE_DIR, 'static/'),


The problem is in the STATIC_ROOT and STATICFILES_DIRS there names cant be same.
static root is used for collectstatic command of django.
You can remove it if not using it.
And can also remove static files dirs if not changing its default position(inside django app) to somewhere else like base or something.


Leave a comment