Town's reward for knocking out last season's beaten finalists Cardiff City is a home draw against Wolves, fresh from their relegation from the Premier League and twice winners of the League Cup competition.
The ties will be played in the week commencing 27 August.
Former Cobblers midfielder Michael Jacobs meanwhile was involved in an incredible first round tie. The summer signing by Derby County had a big hand in his new club taking a three goal lead against Scunthorpe before, incredibly, the League One side levelled the game at 5-5 before winning on penalties.