[dev] add django debug toolbar to dev env
This commit is contained in:
parent
470e690c61
commit
c1383ca376
5 changed files with 12 additions and 3 deletions
|
|
@ -47,6 +47,7 @@ if env("DEV") is True:
|
|||
INSTALLED_APPS.extend(
|
||||
[
|
||||
"django_extensions",
|
||||
"debug_toolbar",
|
||||
]
|
||||
)
|
||||
SHELL_PLUS = "ipython"
|
||||
|
|
@ -60,6 +61,11 @@ MIDDLEWARE = [
|
|||
"django.contrib.messages.middleware.MessageMiddleware",
|
||||
"django.middleware.clickjacking.XFrameOptionsMiddleware",
|
||||
]
|
||||
if env("DEV") is True:
|
||||
MIDDLEWARE.append("debug_toolbar.middleware.DebugToolbarMiddleware")
|
||||
INTERNAL_IPS = [
|
||||
"127.0.0.1",
|
||||
]
|
||||
|
||||
ROOT_URLCONF = "config.urls"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue