Django: Configure staticfiles directory for manage.py collectstatic
Aug. 23, 2022
django
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'