The match is due to take place in the week commencing August 22nd and will be played at Northampton's Sixfields Stadium.
Rangers were seeded for the draw. Elsewhere, Southampton will visit Roots Hall to play Southend United while Crystal Palace host Walsall.
QPR MAD can also announce that two fixtures have been moved for media reasons. Rangers' home games against Sheffield Wednesday and Crystal Palace have been adjusted following Sky's decision to screen the games live.
The fixtures will now take place as:
Friday 26th August V Sheffield Wednesday
&
Monday 3rd October V Crystal Palace.