from run settings import DEBUG class TemplateDebug def process_view se

1
2
3
4
5
6
7
from run.settings import DEBUG
class TemplateDebug:
def process_view(self, request):
if DEBUG:
request.debug = True
return request