Use routine from Django rather than external lib.