1 2 3 4 5 6 7 | {% if debug %}
<script type="text/javascript">
{% for q in sql_queries %}
console.debug("({{ q.time }}s)", "{{ q.sql|escapejs }}");
{% endfor %}
</script>
{% endif %}
|
More like this
- Debug SQL Query in Template by dario.agliottone 1 year ago
- Template Query Debug by insin 6 years, 2 months ago
- SQL Log To Console Middleware by davepeck 3 years, 9 months ago
- Middleware for printing of exception to console by dballanc 5 years, 8 months ago
- Context processor for django admin app_list by alexander 3 years, 3 months ago
Comments