We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1488bce commit b50b92dCopy full SHA for b50b92d
1 file changed
main/settings.py
@@ -11,6 +11,7 @@
11
"""
12
13
import os
14
+import socket
15
16
from django.contrib.messages import constants as message_constants
17
from prettyconf import config
@@ -36,7 +37,11 @@
36
37
)
38
39
if DEBUG:
40
+ # tricks to have debug toolbar when developing with docker
41
+ local_ip = socket.gethostbyname(socket.gethostname())
42
+ docker_gateway = local_ip[:-1] + '1'
43
INTERNAL_IPS = [
44
+ docker_gateway,
45
'localhost',
46
'127.0.0.1',
47
'0.0.0.0',
0 commit comments