[Django]-Does Django Debug Toolbar work with DRF?

14👍

Yes, it works fine if you have the correct INTERNAL_IPS = [..] . With docker you also have to find out the IP of serving proxy-server for example nginx-container.

28👍

Didn’t work for me until I’ve added

DEBUG_TOOLBAR_CONFIG = {
    "SHOW_TOOLBAR_CALLBACK": lambda request: True,
}

11👍

Yes, Debug Toolbar works with DRF, but you need also to add INTERNAL_IPS = ['127.0.0.1',] to your settings.py file.

Leave a comment