{% extends "silk/base/base.html" %} {% load silk_assets %} {% load silk_filters %} {% load silk_inclusion %} {% block pagetitle %}Silky - SQL query{% endblock %} {% block style %} {% endblock %} {% block js %} {% endblock %} {% block menu %} {% endblock %} {% block data %}

{{ sql_query.query|sql_type }} {{ sql_query.tables_involved|join:", "|default:"query" }}

{% if silk_request %}In {{ silk_request.method }} {{ silk_request.path }}, {% endif %}{% if offset_ms is not None and offset_ms >= 0 %}started {{ offset_ms|dur }} into the request.{% else %}recorded {{ sql_query.start_time|silk_date_time }}.{% endif %}

{% if sql_query.pattern_hash %}This pattern across requests{% endif %}
Time{{ sql_query.time_taken|dur }}
Joins{{ sql_query.num_joins }}
Tables{{ sql_query.tables_involved|length }}
App frames{{ app_frames }}
{% include 'silk/inclusion/code_block.html' with title='Query' id='q-sql' text=sql_query.formatted_query lang='sql' %} {% if analysis %}{% include 'silk/inclusion/code_block.html' with title='Query plan' id='q-plan' text=analysis %}{% endif %}

Traceback

innermost call first ยท your code is highlighted, library frames are muted
{% for f in frames %}
{% if f.app %}{{ f.file|app_path }}:{{ f.line }}{% else %}{{ f.file|app_path }}:{{ f.line }}{% endif %} {{ f.func }} {% if f.is_top %}ran the query{% endif %} source
{% if f.code %}{{ f.code }}{% endif %} {% if f.pos == pos and code %}{% code code actual_line %}{% endif %}
{% endfor %}
{% endblock %}