Problem:
Django Toolbar doesn't show up after changing APLUS_ENABLE_DJANGO_DEBUG_TOOLBAR to True in docker-compose.yml on some machines (At least on two Aalto's Macs).
Possible workaround:
Modify line 624 of /a-plus/a-plus/setting.py to 'SHOW_TOOLBAR_CALLBACK': lambda request: False if request.headers.get('x-requested-with') == 'XMLHttpRequest' else True, from 'SHOW_TOOLBAR_CALLBACK': 'lib.helpers.show_debug_toolbar', and re-run the containers.
The snippet should look like this in the end:
try:
# pylint: disable-next=used-before-assignment
DEBUG_TOOLBAR_CONFIG.setdefault('SHOW_TOOLBAR_CONFIG', 'lib.helpers.show_debug_toolbar')
except NameError:
DEBUG_TOOLBAR_CONFIG = {
'SHOW_TOOLBAR_CALLBACK': lambda request: False if request.headers.get('x-requested-with') == 'XMLHttpRequest' else True,
}