Ticket #12605: ImproperlyConfigured_bug.diff

File ImproperlyConfigured_bug.diff, 611 bytes (added by tmcw, 6 years ago)

Removes redundant import of exception class

  • base.py

     
    3838            ## The following is the same as in django.db.backends.sqlite3.base ##
    3939            settings_dict = self.settings_dict
    4040            if not settings_dict['NAME']:
    41                 from django.core.exceptions import ImproperlyConfigured
    4241                raise ImproperlyConfigured("Please fill out the database NAME in the settings module before using the database.")
    4342            kwargs = {
    4443                'database': settings_dict['NAME'],
Back to Top