Working with templates

    Plain cannot be used in templates used by external applications, use static_placeholder instead.

    New in version 3.0.

    This is mostly useful to use it in the extends template tag in the application templates to get the current page template.

    Example: cms template

    1. {% load cms_tags %}
    2. {% block main %}
    3. {% for item in object_list %}
    4. {% static_placeholder "sidebar" %}
    5. {% endblock main %}

    CMS_TEMPLATE memorises the path of the cms template so the application template can dynamically import it.

    New in version 3.0.