1
For base.html
, you need to have {% load cms_tags sekizai_tags %}
in the file. Add {% render_block "css" %}
to <head></head>
and {% render_block "js" %}
somewhere between <body></body>
. Depending on the template files that inherit from base.html
, certain portions may have been overwritten. For example, if you had:
{# base.html #}
{% block content %}
<div class="example-class"></div>
{% endblock %}
But in another file say:
{# layout.html #}
{% extends "base.html" %}
{% block content %}
{% endblock %}
The div would not appear.
If however, you are talking about missing CSS files, you still need to include them in <head>
for it to be displayed. render_block "css"
is for django-cms css files that are included in plugins etc. I usually use a LESS or SCSS compiler to include CSS into my projects.
Hope that helps. Post more details for a better diagnosis.
Source:stackexchange.com