Django does not load static files
-
I work for PyCharm. In index.html, I have written:
<head> <meta charset="UTF-8"> <title>22</title> {% load static %} <script src="{% static "mapping/js/map.js"%}"></script> <style src="{% static "mapping/css/styles.css"%}"></style> </head> <body> <h1> Hello world </h1> </body>
And the folder changed colour to blue static/mapping/css/styles.css
h1 { color: #5b80b2; }
The browser is giving this.
-
The solution was found here, moving through the server line, everything works properly. https://www.javatpoint.com/django-static-files-handling