Add django 1.4/1.5 and python 2.7/3.2 compatibility