How to correctly set up internal ip for django-debug-toolbar

做~自己de王妃 提交于 2020-02-03 09:00:26

问题


First time i'm editing setting.py file in google cloud computing please forgive me for this silly Question ...

I wanted to run django-debug-toolbar and followed every step in that tutorial. And the thing i want is the tool bar to be visible in (our office) only.

So i just put our public address into INTERNAL_IPS like INTERNAL_IPS = ('182.74.xx.xx',) and i did restart run server. but the tool bar not visible. If changed back to 127.0.0.1 then tool bar visible again


回答1:


It's should work. Just restart and make sure recompile all the things. If production server running behind nginx make sure restart that too...

And if you want to check just replace your internal Ip address with different Ip address then confirm it.



来源:https://stackoverflow.com/questions/27838400/how-to-correctly-set-up-internal-ip-for-django-debug-toolbar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!