[PATCH 3/3] Add Docker IP to whitelist for django-debug-toolbar

Daniel Axtens dja at axtens.net
Tue Aug 9 14:38:45 AEST 2016


Yay for debugging with Docker.

Signed-off-by: Daniel Axtens <dja at axtens.net>
---
 patchwork/settings/dev.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/patchwork/settings/dev.py b/patchwork/settings/dev.py
index 127e15d9ebcd..99cb72e335cf 100644
--- a/patchwork/settings/dev.py
+++ b/patchwork/settings/dev.py
@@ -78,7 +78,10 @@ if django.VERSION >= (1, 7):
         'debug_toolbar.middleware.DebugToolbarMiddleware',
     ] + MIDDLEWARE_CLASSES
 
-    INTERNAL_IPS = ['127.0.0.1', '::1']
+    INTERNAL_IPS = [
+        '127.0.0.1', '::1',
+        '172.17.0.1'
+    ]
 
 
 #
-- 
2.7.4



More information about the Patchwork mailing list