awx
awx copied to clipboard
Enable django debug toolbar by default in development environment
This PR:
- Enables Django Debug Toolbar by default in the development environment.
- Is there any reason not to do this?
- Uses an Ansible vars plugin to automatically set the
INTERNAL_IPS
setting (used by DDT)
Personally, I would turn this off right away. The performance hit is truly profound, and I'm not on particularly bad hardware.
The toolbar is inconsistently usable in the actual UI. It only makes sense to me to use it via the API browser. If we could turn it off for UI requests, that wouldn't be so bad, but without that this makes normal testing much more of a chore, and I wouldn't recommend it.
This could still be useful to insert a commented-out INTERNAL_IPS
which includes the correct host name. Myself, I've never had trouble with the default hard-coded values, but that may not work on different systems.