📜  有没有 django-debug-toolbar 的学习活动 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:35.125000             🧑  作者: Mango

代码示例1
# If django-debug-toolbar does not work, add this to settings.py 

def show_toolbar(request):
    return True
SHOW_TOOLBAR_CALLBACK = show_toolbar

#Also set INTERNAL_IPS e.g.  

INTERNAL_IPS = ['127.0.0.1']