I am converting php website to django. I have to match the password of a user during login. For hashing the password in cakephp
Security::setHash('blowfish');
Security::setCost(7);
Now I have to find same hashing function in django. I went through the this and found out that they use bcrypt to hash the password in CakePhp. I am beginner in Django and Can not figure out how to encrypt the password using bcrypt in Django specially setCost() function so that hashed password is same as in CakePhp.