fix: restore sql_debug functionality from the container (#4835)
This commit is contained in:
parent
ac55b2cb6f
commit
e257ddbfea
|
@ -54,7 +54,7 @@ SUBMIT_YANG_RFC_MODEL_DIR = '/assets/ietf-ftp/yang/rfcmod/'
|
|||
# Set INTERNAL_IPS for use within Docker. See https://knasmueller.net/fix-djangos-debug-toolbar-not-showing-inside-docker
|
||||
import socket
|
||||
hostname, _, ips = socket.gethostbyname_ex(socket.gethostname())
|
||||
INTERNAL_IPS = [".".join(ip.split(".")[:-1] + ["1"]) for ip in ips]
|
||||
INTERNAL_IPS = [".".join(ip.split(".")[:-1] + ["1"]) for ip in ips] + ['127.0.0.1']
|
||||
|
||||
# DEV_TEMPLATE_CONTEXT_PROCESSORS = [
|
||||
# 'ietf.context_processors.sql_debug',
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{% load origin %}
|
||||
{% load static %}
|
||||
{% origin %}
|
||||
{% if debug %}
|
||||
{% if settings.DEBUG %}
|
||||
{% if sql_debug %}
|
||||
{% load debug_filters %}
|
||||
{{ sql_queries|length }} queries ({{ sql_queries|timesum }}s)
|
||||
|
|
Loading…
Reference in a new issue