jazzband / django-silk

Silky smooth profiling for Django
MIT License
4.4k stars 334 forks source link

hope the silk should not be access when set DEBUG=False #723

Open Cherrymelon opened 1 month ago

Cherrymelon commented 1 month ago

I think it is weird that silk page can be access when DEBUG=False, and I add a new setting SILKY_INTERCEPT_FUNC = lambda r: settings.DEBUG So, for avoid silk be accessed in prod env,I have to delete url endpoint ,I think it control by DEBUG variable is more elegant