awx icon indicating copy to clipboard operation
awx copied to clipboard

Enable django debug toolbar by default in development environment

Open shanemcd opened this issue 2 years ago • 1 comments

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)

shanemcd avatar Jul 23 '22 00:07 shanemcd

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.

AlanCoding avatar Jul 25 '22 15:07 AlanCoding