IP address that allowed me to display django toolbar was the IP of the getway associated with my docker container. To obtain IP of the gatway I run this comand
docker inspect my_container_name | grep -e '"Gateway"'
# "Gateway": "172.18.0.1",
In total my settings look like this
INSTALLED_APPS = (
'debug_toolbar',
)
INTERNAL_IPS = ['172.18.0.1']

本文介绍如何使用pip安装Django Debug Toolbar,并详细说明了必备条件、URL配置、中间件设置及内部IP设置等内容。
686

被折叠的 条评论
为什么被折叠?



