question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

debug tool bar not showing up in Production

See original GitHub issue

I have a setup in public cloud, NGINX + GUNICORN + Django, I have followed all steps in official documents to install django-debug-toolbar, and have below configs in settings.py:

DEBUG = True

def show_toolbar(request):
    return True

DEBUG_TOOLBAR_CONFIG = {
    'SHOW_TOOLBAR_CALLBACK': 'project_name.settings.show_toolbar',
}

I also tried to set INTERNAL_IPS to public accessible address of my django server.
django-debug-toolbar never shows up. anything I missed out ?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
matthiaskcommented, Mar 7, 2022

Maybe your customized HTML template does not contain a </body> string? This string is used to find the insertion point for the toolbar, see https://github.com/jazzband/django-debug-toolbar/blob/bf785130d5c60e4c269be154d231775d02008801/debug_toolbar/settings.py#L13

0reactions
tian-yancommented, Mar 9, 2022

strongly agree and completely understandable. my website is deployed with Production setup but not officially released yet, so I can still play with it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

django-debug-toolbar not showing up - Stack Overflow
What is DEBUG set to? It won't load unless it's True . If it's still not working, try adding '127.0.0.1' to INTERNAL_IPS as...
Read more >
Django Debug Toolbar, not showing/appearing, Fix it & Bring ...
The Debug Toolbar should have appeared only in Debug mode. So, the rest of the settings will be for DEBUG mode only. #...
Read more >
Django Debug Toolbar not showing up
My Django Debug Toolbar is not showing up. ... Share your installed apps, middleware, toolbar settings, and whether the toolbar is being ...
Read more >
Configuration — Django Debug Toolbar 3.8.1 documentation
The debug toolbar ships with a default configuration that is considered sane for the vast majority of Django projects. Don't copy-paste blindly the...
Read more >
Troubleshooting Problems (Symfony 5.4 Docs)
Linked files are not limited to exceptions. For instance, the controller in the web debug toolbar becomes clickable after configuring the IDE. Debugging...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found