Add debug toolbar
This commit is contained in:
parent
0739171afa
commit
d86855d579
@ -18,3 +18,11 @@ DATABASES = {
|
||||
"NAME": BASE_DIR / "db.sqlite3",
|
||||
}
|
||||
}
|
||||
|
||||
# Debug toolbar
|
||||
|
||||
INSTALLED_APPS += ["debug_toolbar"]
|
||||
|
||||
MIDDLEWARE += ["debug_toolbar.middleware.DebugToolbarMiddleware"]
|
||||
|
||||
INTERNAL_IPS = ["127.0.0.1"]
|
||||
|
@ -28,3 +28,8 @@ urlpatterns = (
|
||||
+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
+ static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
||||
)
|
||||
|
||||
if settings.DEBUG:
|
||||
import debug_toolbar
|
||||
|
||||
urlpatterns += [path("__debug__/", include(debug_toolbar.urls))]
|
||||
|
Loading…
Reference in New Issue
Block a user