switch debug to false
refactor django templating structure