0

I installed django-cahalot with redis backend on my django application. It is working fine on my local machine. Problem is this I am unable to see any improvement on my production server. I need to display django-debug-toolbar on my production server to analyze the bottlenecks. Thanks

1 Answer 1

1
# utils.py 

def show_debug_toolbar_in_staging(*a, **kw):
    return True

# settings.py

SHOW_TOOLBAR_CALLBACK = "path.to.utils.show_debug_toolbar_in_staging"

should do the trick.

https://django-debug-toolbar.readthedocs.io/en/latest/configuration.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.