-
Notifications
You must be signed in to change notification settings - Fork 6
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
Django debug toolbar is not working #1457
Comments
I've got it to work by running |
This works too, but not sure if it will be the same for everyone:
|
I was frustrated by this too the other day! |
Was just about to post the same thing: import socket
INTERNAL_IPS = [
".".join(socket.gethostbyname("host.docker.internal").split(".")[:-1]) + ".1"
] |
What's odd to me is that this is similar to what the |
Interesting. I remember when setting this up seeing this warning in their documentation: But now it's gone. I think their solution assumed that the docker IP would always end with 1, but it ends in 4 for our (or my) case which is why it didn't work. |
Now, while using the debug toolbar to try and see how many SQL queries are being made, I get the following error:
I think this is probably linked to django-commons/django-debug-toolbar#1754. We have |
I just noticed that while working in my development environment (devcontainer setup), the Django debug toolbar doesn't show. Perhaps this was as a result of #1454?
The text was updated successfully, but these errors were encountered: