django - How to use webbrowser.open() with request in python -


i made local gui requires users enter usernames , passwords. once click submit, want have pop out window directs them website personal information through post, requires request. know there webbroswer.open() open website, doesn't take requests, how able want do? using django 1.6 , python 2.7

solution #1)

skip , see rjzheng's link below -- it's simpler.

solution #2)

since webbrowser.open() doesn't take post args:

1) write javascript page accepts args via get, ajax post

2) have webbbrowser.open() open url step #1

not glamorous, it'll work :)

be careful security, don't want expose someone's password in url!


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -