Skip to content

Commit e257ddb

Browse files
authored
fix: restore sql_debug functionality from the container (ietf-tools#4835)
1 parent ac55b2c commit e257ddb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docker/configs/settings_local.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
# Set INTERNAL_IPS for use within Docker. See https://knasmueller.net/fix-djangos-debug-toolbar-not-showing-inside-docker
5555
import socket
5656
hostname, _, ips = socket.gethostbyname_ex(socket.gethostname())
57-
INTERNAL_IPS = [".".join(ip.split(".")[:-1] + ["1"]) for ip in ips]
57+
INTERNAL_IPS = [".".join(ip.split(".")[:-1] + ["1"]) for ip in ips] + ['127.0.0.1']
5858

5959
# DEV_TEMPLATE_CONTEXT_PROCESSORS = [
6060
# 'ietf.context_processors.sql_debug',

ietf/templates/debug.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{% load origin %}
33
{% load static %}
44
{% origin %}
5-
{% if debug %}
5+
{% if settings.DEBUG %}
66
{% if sql_debug %}
77
{% load debug_filters %}
88
{{ sql_queries|length }} queries ({{ sql_queries|timesum }}s)

0 commit comments

Comments
 (0)