Fix Django console to work with the refactored Python console from #PR444