views:

76

answers:

3

Hello all, relatively long-time PHP user here. I could install XAMPP in my sleep at this point to the point where I can get a PHP script running in the browser at "localhost", but in my searches to find a similar path using Python, I've run out of Googling ideas. I've discovered the mod_python Apache mod, but then I also discovered that it's been discontinued. I'd greatly prefer to do my Python learning in a browser as opposed to the command prompt, so if anybody could point me along the proper path, I'd be very grateful.

Thanks!

+5  A: 

well mod_python has been retired. So in order to host python apps you want mod_wsgi

http://code.google.com/p/modwsgi/

But python isn't really like php(as in you mix it with html to get output, if I understand your question correctly). In learning python, using the command line/repl will probably be much more useful/straight forward I would think. If you are looking for python as primarily web development you should look into django (http://www.djangoproject.com/) as that might be closer to what you are looking for..

Doon
Thanks! I will give this all a good look. Thanks also to the other commenters!
treeface
+4  A: 

Most Python webframeworks have a built-in minimal development server:

But don't be afraid of the command line. Python has a great interactive console (just run python) and there's an even better one: IPython.

piquadrat
+1 for flask. Minimal and elegant.
sharvey
+2  A: 

Many options, here are a couple:

tcarobruce