STATIC_ROOT vs STATICFILES_DIRS

Hello,

I set the STATIC_ROOT as:

STATIC_ROOT = os.path.join(BASE_DIR, 'static')

And it doesn’t work.

Then I remove it and set STATICFILES_DIRS as:

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

And it works.

So, what is STATIC_ROOT then?

Covered in the docs: