fix for newer django
update for new server haandler call mechanism