changed base.html to track django debug state