[Fixed]-Can't load .css and image files in django

1👍

django.contrib.staticfiles is not included in your INSTALLED_APPS.

Your settings.py should look like this (in INSTALLED APPS)

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.sites',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
]

without that static files won’t work even if everything else is setup properly because to django it’s not installed even though it is (Technically).

Leave a comment