MONTHS. Unless you're Wolverine.
No deadlifts. No sumo, no romanian, no crossfit, no axle, no hex bar, not on a train, not on a plane.
Everyone else is probably going to tell you no, but I PR'd on squat after I herniated my low back, so only do it if it's 100% pain free.