Skip to content

toolbar disappear #2133

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

Open
youjunxiaji opened this issue May 7, 2025 · 5 comments
Open

toolbar disappear #2133

youjunxiaji opened this issue May 7, 2025 · 5 comments

Comments

@youjunxiaji
Copy link

I'm using ssh to remotely reach our company's server and ran python manager.py runserver 0.0.0.0:8000 and I set my ip address correctly in INTERNAL_IPS. When I access the drf page, get can appear, but it disappears when I post it. I need to run djdt.init() to come out

5.7.mov
@tim-schilling
Copy link
Member

Hi @youjunxiaji, we can't look into this unless we have enough information to reproduce it. Can you reproduce this locally? Or is this only on your remote machine? What versions of Django, DRF and the toolbar are you using?

@youjunxiaji
Copy link
Author

Hi @youjunxiaji, we can't look into this unless we have enough information to reproduce it. Can you reproduce this locally? Or is this only on your remote machine? What versions of Django, DRF and the toolbar are you using?您好,除非我们有足够的信息来复现此问题,否则我们无法进行调查。您能在本地复现此问题吗?还是只能在远程机器上复现?您使用的 Django、DRF 和工具栏是什么版本?

It doesn't work as long as I use SSH and DRF pages. When I use the admin interface when I am using the ssh remote, debug-tooltip still works. My django version is 5.0 and my DRF is 3.16.0 and django-debug-toolbar version is 5.0.1. Later I clone the project and run it on localhost and it has no problems.

@tim-schilling
Copy link
Member

You could add some printing/logging to show_toolbar to see why it's failing to return True for your case. https://github.com/django-commons/django-debug-toolbar/blob/main/debug_toolbar/middleware.py#L23

@tim-schilling
Copy link
Member

You can also consider adjusting the SHOW_TOOLBAR_CALLBACK setting: https://django-debug-toolbar.readthedocs.io/en/latest/configuration.html#debug-toolbar-config

@youjunxiaji
Copy link
Author

You can also consider adjusting the SHOW_TOOLBAR_CALLBACK setting: https://django-debug-toolbar.readthedocs.io/en/latest/configuration.html#debug-toolbar-config

thank u . i will try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants