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
- Template Query Debug by insin 4 years, 11 months ago
- Firebug Lite Middleware by jfw 3 years, 3 months ago
- SQL Log To Console Middleware by davepeck 2 years, 6 months ago
- Context processor for django admin app_list by alexander 1 year, 12 months ago
- Template context processor to make the settings.py values available in templates by tamizhgeek 9 months ago
Comments