fix: restore sql_debug functionality from the container (#4835)

This commit is contained in:
Robert Sparks 2022-12-06 08:48:23 -06:00 committed by GitHub
parent ac55b2cb6f
commit e257ddbfea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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',

View file

@ -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)