Question: who occupied the white house during the war of 1812
Answer: President James Madison , military officials , and his government fled the city in the wake of the British victory at the Battle of Bladensburg .