added some django code