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