mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 09:58:06 +00:00
This needs to be deployed to both staging and prod at the same off-peak time (and the schema migration run). At the time it is deployed, we need to make a few changes directly in the database: (1) UPDATE django_content_type set app_label='zerver' where app_label='zephyr'; (2) UPDATE south_migrationhistory set app_name='zerver' where app_name='zephyr'; (imported from commit eb3fd719571740189514ef0b884738cb30df1320)
39 lines
641 B
HTML
39 lines
641 B
HTML
{% comment %}
|
|
Debug tab of the app.
|
|
|
|
Included if Django's DEBUG = True and the query
|
|
parameter ?show_debug is present.
|
|
{% endcomment %}
|
|
|
|
<style>
|
|
/* Hack to make it scrollable */
|
|
.debug_content {
|
|
max-height: 1000px;
|
|
}
|
|
|
|
.sql_table th {
|
|
text-align: left;
|
|
}
|
|
|
|
.sql_table td {
|
|
padding: 4px 4px 4px 4px;
|
|
border-top: 1px solid #ccc;
|
|
}
|
|
</style>
|
|
|
|
<div class="debug_content">
|
|
|
|
<h2>{{ sql_queries|length }} SQL queries made for this page</h2>
|
|
|
|
<table class="sql_table">
|
|
|
|
<tr><th>Time</th><th>Query</th></tr>
|
|
|
|
{% for query in sql_queries %}
|
|
<tr><td>{{ query.time }} s</td><td>{{ query.sql }}</td></tr>
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|