File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 616616 INTERNAL_IPS .append ('127.0.0.1' )
617617 except NameError :
618618 INTERNAL_IPS = ['127.0.0.1' ]
619- try :
620- # pylint: disable-next=used-before-assignment
621- DEBUG_TOOLBAR_CONFIG .setdefault ('SHOW_TOOLBAR_CONFIG' , 'lib.helpers.show_debug_toolbar' )
622- except NameError :
623- DEBUG_TOOLBAR_CONFIG = {
624- 'SHOW_TOOLBAR_CALLBACK' : 'lib.helpers.show_debug_toolbar' ,
625- }
619+ # Configure Debug Toolbar to work under Docker by auto-detecting the gateway IP
620+ # See: https://django-debug-toolbar.readthedocs.io/en/latest/installation.html#docker
621+ DEBUG_TOOLBAR_CONFIG = globals ().get ('DEBUG_TOOLBAR_CONFIG' , {})
622+ # Always use the Docker-aware callback so toolbar shows when accessed via localhost
623+ DEBUG_TOOLBAR_CONFIG .setdefault ('SHOW_TOOLBAR_CALLBACK' , 'debug_toolbar.middleware.show_toolbar_with_docker' )
Original file line number Diff line number Diff line change 33# Required to run browser tests:
44selenium
55pyvirtualdisplay
6- django-debug-toolbar >= 3.2.2 , < 4
6+ django-debug-toolbar >= 6.1.0 , < 7
77prospector
88pytest-playwright
99pytest-django
You can’t perform that action at this time.
0 commit comments