added support for django 1.4-1.7 and python 2.6-3.4