ATLANTA — Back in the playoffs for the first time since 2015, the Cardinals look as gritty as ever.

The Braves also started down a familiar path.

Marcell Ozuna and Kolten Wong each hit two-run doubles in the ninth inning as the Cardinals overcame shaky defense and a wild finish to extend Atlanta’s postseason misery, holding off the Braves 7-6 in Game 1 of the NL Division Series on Thursday night.

The Cardinals fell behind 3-1 — hurt by their normally reliable defense. But Paul Goldschmidt homered in the eighth, sparking a two-run outburst that tied it 3. In the ninth, the Cardinals blew it open against Braves closer Mark Melancon.

Dexter Fowler and Tommy Edman singled before Goldschmidt walked on four pitches to load the bases with one out. Melancon got ahead of Ozuna with two quick strikes, only to give up a liner just inside the third-base bag that put St. Louis ahead for the first time.

Wong finished off Melancon with another two-run double, this one down the right-field line.

“These are fun, exciting games,” said Matt Carpenter, who came through with a pinch-hit bloop single off Melancon to tie the game in the eighth. “Every out, every pitch is important. There’s a lot of adrenaline involved, but that’s what you play for, that’s why you’re here.”

To their credit, the Braves didn’t go quietly in their half of the ninth.

Ronald Acuna Jr. hit a two-run homer off Carlos Martinez, and Freddie Freeman added a solo shot. But Martinez got the final two outs to claim a shaky win and put the Cardinals ahead in the best-of-five series going into Game 2 on Friday. St. Louis ace Jack Flaherty goes against Mike Foltynewicz.

“We’ve played all season expecting to win those type games,” Freeman said. “You give up that kind of lead, it’s tough to swallow.”

During a run of nine playoff appearances from 2004-15, the Cardinals were known for their postseason heroics, most notably rallying for a dramatic World Series win over the Rangers in 2011.

This team looks ready to follow in that mold, while the Braves are stuck in a nightmare that seems to repeat itself every October.

Atlanta has lost nine straight playoff series and is just one away from tying the Cubs’ record for postseason futility — 10 postseason losses in a row between 1908 and 2003. Atlanta has not won a postseason series since 2001, and hasn’t even led a series since going up 2-1 on San Francisco in the 2002 NLDS. The Giants won the next two games to advance.

The Braves snapped a 1-1 tie in the sixth when Dansby Swanson slashed a wicked one-hopper that bounced off the chest of third baseman Edman. The ball deflected to shortstop Paul DeJong, who had a chance to get a force at second base for the third out. But the throw to Wong was a bouncer, the ball shooting off his glove for an error as two runs scored.

Wong also messed up an attempted backhanded toss for an error in the first, helping the Braves grab a 1-0 lead.

It was totally uncharacteristic for a Cardinals team that led the majors during the regular season with just 66 errors and a .989 fielding percentage.

In the end, it didn’t matter.