views:

168

answers:

3

I'm looking for a nice tutorial or framework for developing Python written web applications.

I've done lots in PHP, but very little in Python or Ruby and figured I'd start with the first one alphabetically.

+5  A: 

Try Django. It's one of the more popular Python web frameworks out there and arguably the easiest to use for simple projects.

Amber
Agreed, also recommend starting at the excellent tutorial: http://docs.djangoproject.com/en/1.1/intro/tutorial01/
Dan Head
I tried that but I got some weird errors when adding a mysql database. Perhaps it's time to retry?
Josh K
if u get an error, post it here, and we'll try to sort it out
wescpy
+2  A: 

Depending on what level you want to work at, there are various ways to get started. At the most basic level, there is the WSGI specification, which is kind of like Python's version of the CGI specification, and writing a WSGI application is a lot like writing a CGI script. There are various higher-level frameworks that you could work with, of which Django (mentioned in Dav's answer) is probably the most popular.

David Zaslavsky
For someone coming from a background of a lot of PHP, I wouldn't recommend plain WSGI/CGI since this would just make Python look less useful than PHP itself. Django is a much better advice, because it really shows how Python's abstraction mechanisms can be employed to make this task nice and friendly
Eli Bendersky
`s/less useful/more powerful/`... at least, that's the impression I had, coming to Python from a PHP and Java background. Some people will have a better time starting from the basics. It's not automatically better to recommend that someone pick up Django first because it's an enormously complex system.
David Zaslavsky
I did a lot of Java several years ago. I fear most of it (the JFrame / Panel stuff) has leaked out of my head.
Josh K
for someone who has done a lot of php as the OP has claimed, I think WSGI is a fine suggestion. Django isn't always the best answer.
Tom Willis
+1  A: 

Turbogears is also a fantastic python web framework (or more) and it is lighter then Django in my opinion (what is not so relevant ;) ). It has good documentation and tutorials. Anyway if you are familiar with MVC concept both of them a good choice.

sipiatti