Django template restructured according to prototype