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

Erorr: name 'ImproperlyConfigured' is not defined

NameError: name 'ImproperlyConfigured' is not defined

Solution: Import the 'ImproperlyConfigured' module

# Add the following line to the top of your code
from django.core.exceptions import ImproperlyConfigured

 

For more information:
django ImproperlyConfigured