raise an CommandError exception with an argument string "you must provide %s %s name", where '%s' is replaced with string 'an',
raise CommandError ( "you must provide %s %s name" % ( "an" if app_or_project == "app" else "a" , app_or_project ) )