raise an CommandError with an argument string "%r is not a valid %s name. Please %s.", were '%r' is replaced with name,
raise CommandError ( "%r is not a valid %s name. Please %s." % ( name , app_or_project , message ) )