{% extends "core_main_app/_render/admin/theme/base.html" %} {% load staticfiles %} {% load include_static %} {% comment %} Template including the necessary template and static file for a given view. The file utils/rendering.py is rendering it using Django. {% endcomment %} {% block app_data %} {% include template with data=data %} {% endblock %} {% block app_modals %} {% for modal_file in modals %} {% include modal_file %} {% endfor %} {% endblock %} {% block app_css %} {% for css_file in assets.css %} {% endfor %} {% endblock %} {% block app_js %} {% comment %} The js key from the asset dict should be formated like this: "js": [ { "path": "path/to/file_1.js", "is_raw": True }, ... ] The order of the list is the order of inclusion of the JavaScript files {% endcomment %} {% for js_file in assets.js %} {% if js_file.is_raw %} {% else %} {% endif %} {% endfor %} {% endblock %}