I\'d like to execute some Python code if that button is pressed on web.The thing is, I need the page not to redirect or refresh or anything.
there's a lot of info on internet about django and ajax, just google it.
http://www.youtube.com/watch?v=lllVAFbRGfI
or as Mingyu said use dajax