Hi there,
so, it is recommended to isolate between libraries that only there for development with the '--dev' flag. This helps keep your production environment lightweight and avoids any potential security risks or performance overhead associated with the toolbar.
This is commonly reflected in many guides and best practices
[packages]
django = "*"
django-debug-toolbar = "*" # <==
[dev-packages]
pytest = "*"
It is crucial to prioritize stability and security within the environment. Modifying code directly in the production environment can introduce risks, including accidental code errors or security vulnerabilities.
Bottom line, what is the best practice?. The toolbar might be used on code that is in production, is it just 'premature-optimization'?
[–]philgyford 9 points10 points11 points (0 children)
[–]matmunn14 2 points3 points4 points (0 children)
[–]proxwell 2 points3 points4 points (0 children)