Django static files not loading/working with no error signs

Unable to load static files, looked around the internet, but the solutions aren't working for me. Pls help.

I tried moving around the static folder changing its place, tried playing around in settings.py, but nothing seems to fix it, i don't get 404 in the terminal but instead "GET / HTTP/1.1" 200 4441

All i am trying to do is change the backround color to confirm it if works

body{
    backround-color: blue;
}

like this i mean

Any help would be greatly appreciated

Here is my main.html where i load static:

<!DOCTYPE html>
{% load static %}
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Mutuals</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" media="screen" href="{% static 'styles/main.css' %}">
</head>

Static folder location

Settings.py:

STATIC_URL = 'static/'
STATICFILES_DIRS = [
    os.path.join(BASE_DIR, 'static'),
]

Well there is problem in your settings.py file when configuring STATICFILES BASE DIRECTORY.

STATIC_URL = 'static/'
STATICFILES_DIRS=[os.path.join(BASE_DIR,'assets/static'),]

For this directory my image would start like this:

    <link rel="icon" type="image/png" sizes="16x16" href="{% static '/chef/assets/img/favicons/favicon-16x16.png' %}">

Because my directory is like this: assets->static->chef->assets->img->favicons........->image.png

Configure your settings.py file as per the directory. If the issue still persist reply to this message.

Back to Top