5
Whoa, guys, I’m having trouble uploading static files.
Static folder is in the core application, also tested with it at the root of the project and also did not take
I made a test index file:
{% load static %}
{% static "assets/css/bootstrap.css"%}
<link href="{% static "assets/css/bootstrap.css"%}" rel="stylesheet">
Give the following error in the browser console:
GET http://127.0.0.1:8000/ [HTTP/1.0 200 OK 3 ms]
GET http://127.0.0.1:8000/static/assets/css/bootstrap.css [HTTP/1.0 404 Not Found 7 ms]
GET http://127.0.0.1:8000/static/assets/css/bootstrap.css [HTTP/1.0 404 Not Found 0 ms]
I followed the Django documentation: https://docs.djangoproject.com/pt-br/1.11/howto/static-files/ , but I think I’ve done something wrong