Good trick:
```py
TEMPLATE_DEBUG = DEBUG
```