Working with templates

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

    New in version 3.0.

    This is mostly useful to use it in the extends templatetag 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 memorizes the path of the cms template so the application template can dynamically import it.

    New in version 3.0.