How to Solve NameError: name 'make_password' is not defined -- django

Solution: Import the 'make_password' module

To Solve the error, add the following line to the top of your code.

from django.contrib.auth.hashers import make_password

 

For more information:
Python django make_password