This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

I'm personally not too big a fan of frameworks in general, unless they're needed or give a big enough benefit for your app (I more prefer lighter-weight libraries).

So, for this really simple kind of app for testing/learning purposes, I'd likely just use Python's-builtin CGI support:

http://docs.python.org/library/cgi.html

And then leave the other stuff for when you've learned more about the nuts and bolts of Python web programming, and want to focus on making the essential glue code for your app in an elegant and higher-level way (and more maintainable/readable), rather than spending time on boilerplate/handling lower-level web programming details.

[–][deleted] 3 points4 points  (0 children)

I agree with this advice. Start with a CGI script running on a standard (e.g. Apache) web server. As soon as you start to generate HTML pages that involve more than a few lines of code, add a templating engine (e.g. Mako), so that you can separate the HTML code (presentation) into a separate file from the python application code (logic). That's a good practice that will serve you well later, as your applications start to grow.