There was a discussion in Stack Overflow related to an answer of mine - how to access settings from templates in Django [
https://stackoverflow.com/a/53953578/1412564]. And I would like to know - is it generally unsafe to expose all my settings to templates and why? Should I use the updated answer and expose only specific settings to templates? Because if a hacker can change my templates, they can also change my .py files, and then they can give themselves any access they want to. So what is better - expose all my settings to templates or only specific settings which I consider safe?