How can django debug toolbar be set to work for just some users? -


right away: yes know internal_ips.

i'm have django app opened @ work integration , testing. know there debugging , plenty modifications and/or optimizations made i'd love have django debug toolbar. however, i'd prefer not have of co-workers (who 'clients').

the reason internal_ip setting doens't work me (btw: have static ip on development computer) using nginx reverse-proxy , serving gunicorn. because of reverse-proxy, using internal_ip of 127.0.0.1 shows djdt computer on network , using ip way i've been able see myself.

what i'm looking either way ip or login name 1 access toolbar. once saw thread user name limited access can't find it...

and side question- know why toolbar doesn't render in ie? me shows tables on bottom of page.

try:

def show_toolbar(request):     return not request.is_ajax() , request.user , request.user.username == "yourusername"  debug_toolbar_config = {     'show_toolbar_callback': 'projectname.settings.show_toolbar',     # rest of config } 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -