~ / blog / development / django-configure-staticfiles-directory-for-managepy-collectstatic
django 2022-08-23·1 min read

Django: Configure staticfiles directory for manage.py collectstatic

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.

python
STATIC_ROOT = BASE_DIR / 'staticfiles'