I have been struggling with this issue despite the many solutions available. My Django app has the following folder structure:
https://i.sstatic.net/lbkk6.png
To reference the styles.css file from my index.html page, I use the following code:
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="395b56564d4a4d4d959190cad2e3c844c0e1ee82">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
{% load static%}
<link rel="stylesheet" href="{% static 'css/styles.css' %}">
Despite making changes to my css file, it doesn't seem to affect my webpage.
This is what my css file looks like:
.form-details {
text-align: center;
color: Tomato;
background-color: red;}