Python - How to import 'ImproperlyConfigured' -- django

Import ImproperlyConfigured

To import ImproperlyConfigured, Add the following line to the top of your code.

from django.core.exceptions import ImproperlyConfigured

 

For more information about ImproperlyConfigured:
django ImproperlyConfigured