Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/configs/settings_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
# 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',
Expand Down
2 changes: 1 addition & 1 deletion ietf/templates/debug.html
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down