Guys please tell me why there is no access to CSS. The link in the template correctly substitutes, there are these css files, but when you try to follow this link, we get Page not found (404).
Connection in the template:
{% load staticfiles %} <!— Bootstrap core CSS —> <link href="{% static "css/bootstrap.min.css" %}" rel="stylesheet"> <!— Custom styles for this template —> <link href="{% static "css/blog.css" %}" rel="stylesheet"> In Settings.py
STATIC_URL = '/static/' STATIC_ROOT = 'static' TEMPLATES_DIRS = (os.path.join(BASE_DIR, 'templates')) STATIC_DIRS = (os.path.join(BASE_DIR, 'static')) Collectstatic made.
At the exit in the template:
When transitioning PAge not found http://127.0.0.1:8000/static/css/bootstrap.min.css to Urls.py ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)