Updated Django handler