are you sure you want to use the ImproperlyConfigured Exception? For me it sounds more like the ImportError that was thrown in the first place.