Add Django compatability