반응형

https://django-debug-toolbar.readthedocs.io/en/latest/index.html 를 필요한 내용만 요약하였습니다.

요약

# 설치
pip install django-debug-toolbar
# 설정

# settings.py
INSTALLED_APPS = [
    "debug_toolbar",
]
MIDDLEWARE = [
    "debug_toolbar.middleware.DebugToolbarMiddleware",
]
INTERNAL_IPS = [
    "127.0.0.1",
]

# urls.py
urlpatterns = [
    path("__debug__/", include("debug_toolbar.urls")),
]
반응형

+ Recent posts