Configure staticfiles directory for manage.py collectstatic

Configure staticfiles directory for manage.py collectstatic

August 21, 2022
static

Starting new project it’s have no configured staticfiles directory configured by default, so it is not able you to use python manage.py collectstatic script to generate staticfiles bundle. It is small tip how to configure staticfiles fast and easy, just add this line to your settings.py file.

STATIC_ROOT = BASE_DIR / 'staticfiles'

Comments