Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
... by removing it. The setting for SHOW_TOOLBAR_CALLBACK seems to have been an attempt to work around issues when running inside docker. Debug toolbar tries to handle this case, but it doesn't work sufficiently (at least in my case). The documentation has an opinion on this matter: Do not use DEBUG_TOOLBAR_CONFIG = {"SHOW_TOOLBAR_CALLBACK": lambda request: DEBUG} in your project’s settings.py file. This commit is longer than I'd like, but the setting of INTERNAL_IPS seems to really fix it, and solves the fact that the debug context processor wasn't working either. With this fixed, {% debug %} works in templates. INTERNAL_IPS should best contain IP addresses rather than hostnames. IS_RUNNING_TESTS... no idea why we would want the toolbar while running tests.
- Loading branch information