How does Django validate passwords?
pythonprogramming.org