extends django env to 1.5 & 1.6