How to Solve NameError: name 'message' is not defined -- django
Solution: Import the 'message' module
To Solve the error, add the following line to the top of your code.
from django.config import message
For more information:
Python django message