how to open url in new tab from django?

Tags: ,

i have to open the result page using render_to_response on a new tab


Django is server-side, opening in a new tab is client-side. So use an <A> with a target="_blank"

But of course spawning new windows/tabs is annoying for the user, so try not to do that after all.

Source: stackoverflow