You could look at using a tool like Skulpt which allows you to run scripts 
with interaction in a browser window:

http://www.skulpt.org/

E.g. from their example:

Python 2.6(ish) (skulpt, Wed Mar 25 2015 17:52:34)
[Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) 
Ubuntu Chromium/37.0.2062.120 Chrome/37.0.2062.120 Safari/537.36] on Linux 
i686

f = raw_input()
f
'rest'

On Wednesday, 25 March 2015 03:30:10 UTC+2, arthur sherman wrote:
>
> i have a python script which currently runs in a shell cli.
> i'd like to initiate this script from a web page.
> the closest i got was to have the output displayed on the webpage (w/o 
> linefeeds),
> but it crashed when requesting input via raw_input().
> i simply did 'exec python-script-name' from the cgi.
> ok, i now understand why it crashed and why the output is displayed 
> primitively
> it's  now my understanding that django can help.
> where's the best place to start?
> tnx
> ams
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1b46b499-0db7-4403-ab3f-b9328987141c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to