How to Solve NameError: name 'get_random_string' is not defined -- django
Erorr: name 'get_random_string' is not defined
NameError: name 'get_random_string' is not defined
Solution: Import the 'get_random_string' module
# Add the following line to the top of your code
from django.utils.crypto import get_random_string
For more information:
django get_random_string