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