I'm trying to link my base.css to base.html file. As I'm doing this but it doesn't reflect any changes. If it is possible, what'll be the correct code?
I use header & footer tag in the base.html file and there are no. of different properties I'm implementing in the project. So the separate CSS file would be better rather than using inline styling or internal style sheet. But it isn't working.
syntax of code used:
`{% load static %}
<html>
<head>
<link rel = 'stylesheet' href = '{% static 'css/base.css' %}'>
</head>
<header>
......
......
</header>
{% block content %}
{% endblock %}
<footer>....
</footer>
</html>'
Also, when I tried to make a separate .css file for base.html. It didn't work. So I'm confused now. It seems like you can't link two template tag files - base.html (Common Header & Footer) for every web pages & base.css for styling of every web pages.
./manage.py runserver) or behind a front server (nginx, apache etc), 3/ where are you css files stored, 4/ are your settings STATICFILES_DIR etc correctly configured, and 5/ did you carefully read the doc regarding static files ?