You can add this check to the previous line: 
`{% if user.is_superuser and settings.DEBUG %}`