Energy broken prototype written in django