Add Django 1.4 support and fix Django versions