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

Solution: Import the 'force_text' module

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

from django import force_text

 

For more information:
Python django force_text