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, 1 month ago
- Template Query Debug by insin 6 years, 3 months ago
- SQL Log To Console Middleware by davepeck 3 years, 10 months ago
- Middleware for printing of exception to console by dballanc 5 years, 9 months ago
- Context processor for django admin app_list by alexander 3 years, 4 months ago
Comments