Fix missing ImproperlyConfigured import.