Hi,
At the beging I want to apologize for my English... OK. Currently I'm reading "Programming Pyton" by Mark Lutz. In this book there are a few chapters about writing CGI scripts and other Internet related stuff. Obviously to test this kinda code I need some hosting place. So I came across this website I reigster myself and... I stucked.
I just want to run those simple HTML/Python codes (examples from book):
cgi101.html : http://pastebin.ubuntu.com/6577909/
cgi-bin/cgi101.py : http://pastebin.ubuntu.com/6577914/
While trying to achive this I added "Manual configuration" (Python 3.3) as "new web app" and I edited file ( /var/www/petermakal_pythonanywhere_com_wsgi.py) to this:
import sys
path = '/home/petermakal/'
if path not in sys.path:
sys.path.append(path)
Then I run my cgi101.html in browser (http://petermakal.pythonanywhere.com/database5_CGI/cgi101.html). I type something, I click button and then my Python script should be executed (http://petermakal.pythonanywhere.com/database5_CGI/cgi-bin/cgi101.py)... but all I see at this point is "Unhandled Exception" in my browser.
Really all I need at this point is to just test that simple HTML/Python code showed above.