update several files to follow latest Django doc