raise an CommandError with an argument string "%s. Are you sure your INSTALLED_APPS setting is correct?", with '%s' replaced by e.
raise CommandError ( "%s. Are you sure your INSTALLED_APPS setting is correct?" % e )