{% cms_toolbar %}
{% placeholder "content" %}
{% 0 码力 |
493 页 |
1.44 MB
| 6 月前 0.03
template fix
Plugin templates may suffer for incorrect caching when using django-sekizai (which may cause css and javascript
files not to be served to the users). This backported fix resolve this, as the whole TEMPLATE_CONTEXT_PROCESSORS setting.
All templates in CMS_TEMPLATES must at least contain the js and css sekizai namespaces.
Please refer to the documentation on Handling media in custom CMS plugins and the the toolbar showing up in places it shouldn’t have.
Static files moved to /static/
The static files (css/javascript/images) were moved from /media/ to /static/ to work with the new
django.contrib.staticfiles
0 码力 |
92 页 |
666.41 KB
| 6 月前 3
attribute.
{% render_block "css" %} and {% render_block "js" %} are Sekizai
template tags that load blocks of HTML defined by Django applications. django
CMS defines blocks for CSS and JavaScript, and requires render_block "css" %}
{% cms_toolbar %}
{% placeholder "content" %}
{% render_block "js" %}