# https://django-debug-toolbar.readthedocs.io/en/stable/
1. 설치
(BlogVenv) C:\Work\Software\eclipse-jee-2019-12-R-win32-x86_64\workspace\Blog>pip list
Package Version
------------------- ----------
asgiref 3.2.3
certifi 2019.11.28
chardet 3.0.4
defusedxml 0.6.0
Django 2.1.15
django-allauth 0.41.0
django-disqus 0.5
django-js-asset 1.2.2
django-mptt 0.11.0
django-pyodbc-azure 2.1.0.0
django-tagging 0.4.6
idna 2.9
mock 3.0.5
oauthlib 3.1.0
Pillow 7.0.0
pip 20.0.2
pymssql 2.1.4
pyodbc 4.0.28
python3-openid 3.1.0
pytz 2019.3
requests 2.23.0
requests-oauthlib 1.3.0
setuptools 45.0.0
six 1.14.0
sqlparse 0.3.0
urllib3 1.25.8
wheel 0.33.6
(BlogVenv) C:\Work\Software\eclipse-jee-2019-12-R-win32-x86_64\workspace\Blog>pip install django-debug-toolbar
Collecting django-debug-toolbar
Downloading django_debug_toolbar-2.2-py3-none-any.whl (198 kB)
|| 198 kB 226 kB/s
Requirement already satisfied: sqlparse>=0.2.0 in c:\work\software\eclipse-jee-2019-12-r-win32-x86_64\workspace\blog\blogvenv\lib\site-packages (from django-debug-toolbar) (0.3.0)
Requirement already satisfied: Django>=1.11 in c:\work\software\eclipse-jee-2019-12-r-win32-x86_64\workspace\blog\blogvenv\lib\site-packages (from django-debug-toolbar) (2.1.15)
Requirement already satisfied: pytz in c:\work\software\eclipse-jee-2019-12-r-win32-x86_64\workspace\blog\blogvenv\lib\site-packages (from Django>=1.11->django-debug-toolbar) (2019.3)
Installing collected packages: django-debug-toolbar
Successfully installed django-debug-toolbar-2.2
(BlogVenv) C:\Work\Software\eclipse-jee-2019-12-R-win32-x86_64\workspace\Blog>pip list
Package Version
-------------------- ----------
asgiref 3.2.3
certifi 2019.11.28
chardet 3.0.4
defusedxml 0.6.0
Django 2.1.15
django-allauth 0.41.0
django-debug-toolbar 2.2
django-disqus 0.5
django-js-asset 1.2.2
django-mptt 0.11.0
django-pyodbc-azure 2.1.0.0
django-tagging 0.4.6
idna 2.9
mock 3.0.5
oauthlib 3.1.0
Pillow 7.0.0
pip 20.0.2
pymssql 2.1.4
pyodbc 4.0.28
python3-openid 3.1.0
pytz 2019.3
requests 2.23.0
requests-oauthlib 1.3.0
setuptools 45.0.0
six 1.14.0
sqlparse 0.3.0
urllib3 1.25.8
wheel 0.33.6
2. settings.py에 app 추가
INSTALLED_APPS = [
...
'django.contrib.staticfiles', <-- 기 셋팅
'debug_toolbar',
...
]
MIDDLEWARE = [
...
'debug_toolbar.middleware.DebugToolbarMiddleware',
]
STATIC_URL = "/static/" <-- 기 셋팅
# 지정된 IP주소에서만 debugging 할수 있다.
INTERNAL_IPS = [
'127.0.0.1',
]