[Fixed]-Unable to serve static files with Django runserver

1👍

✅

Please try specifying STATICFILES_DIRS in settings.py file.

STATICFILES_DIRS = '/home/workspace/app-toscana/django/djangoapptoscana/djangoapptoscana/static'

STATIC_ROOT is the absolute path to the directory where ./manage.py collectstatic will collect static files for deployment. Create static_cdn folder at the following path.

STATIC_ROOT = '/home/workspace/app-toscana/django/static_cdn'

This stack overflow link and this one should help you.

Leave a comment