0
I am developing a Jango application, everything is running perfectly, but the static file is not being rendered on in my Catalog.
I made the settings in Settings but it still doesn’t work. below is how I put the settings in Settings as I pulled the static file in Templete.
Settings in the Settings:
STATIC_URL = '/static/'
STATICFILES_DIRS = [
'static',
]
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
How I’m pulling on the template:
{% load static %}
<!doctype html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="{% static 'style.css' %}">
<title>{% block title %}{% endblock %}</title>
</head>
This is the error that the terminal returns:
[07/Jan/2021 20:07:37] "GET / HTTP/1.1" 200 576
[WinError 3] O sistema não pode encontrar o caminho especificado: 'C:\\Users\\rodri\\OneDrive\\Documentos\\PYTHON\\DJANGO\\projeto_final\\clientes_admin\\staticfiles/style.css'
[07/Jan/2021 20:07:37] "GET /static/style.css HTTP/1.1" 404 13