Weimar Germany was a short squeeze on gold caused by the war debt. Germany printed money to buy gold, but the more they printed, the more gold cost. This was predicted by Keynes ahead of time.
That was a policy decision, not a necessary decision. They printed money to pay workers in Rhineland and because it was a calibrate choice by them in order to force a revision WW1 settlement.