-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Debug Toolbar is missing #3 #19217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is actually an issue before 4.3, tied to issue #16454. This is fixed in newer versions of Debug Toolbar so could re-include this. |
Actually looking at this thread django-commons/django-debug-toolbar#1435 - debug toolbar can have performance and/or security issues if it is installed in middleware on production if DEBUG=False. Installing it but not having the middleware active will cause a system warning. So I'm not sure we want to go down this route. |
Thanks for the clarification! I agree that we should avoid adding the debug toolbar middleware in production environments, given the potential performance and security concerns. That said, since toggling the |
We could retain the debug toolbar in if not DEBUG and 'collectstatic' not in sys.argv:
INSTALLED_APPS.remove('debug_toolbar') This would ensure that the static assets get copied over every time regardless of the |
Uh oh!
There was an error while loading. Please reload this page.
Deployment Type
Self-hosted
NetBox Version
v4.3-beta1
Python Version
3.11
Steps to Reproduce
DEBUG=False
in the configuration filecollectstatic
has been executed, change this toDEBUG=True
and restart NetBoxExpected Behavior
The Django debug menu is available.
Observed Behavior
It is not.
If
collectstatic
is executed manually after settingDEBUG=False
, 494 static files are copies. IfDEBUG
is set toTrue
, 501 are copied.The files that are missing are:
Which explains the problem neatly.
The text was updated successfully, but these errors were encountered: