Python web programming

Posted on Sun 19 March 2006 in Code

I starting playing with web.py today to see how easy it would be to make a simple web app.

I followed the tutorial and everything was going well until it all stopped working. Took me about 20 minutes to figure out was wrong. Can you see it?

urls = (
    '/', 'view'
    '/add','add'
)

No? Look again:

urls = (
    '/', 'view',
    '/add','add'
)

That's right I was missing a comma. Did the program complain? No. What was the output on the web browser: "not found".

I wasn't impressed. I hate when stuff like that happens. I will still play with web.py because it is so simple but I will be much more careful in the future.

I play a lot of computer games. Most of those games require a serial number. I am going to us web.py to make a small web app to store all of my serial numbers. Seems like a good test and more complicated than the tutorials "todo list".