The Best Way To Use Python As A Server Scripting Language For Use On Localhost
Solution 1:
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..
Solution 2:
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.
Solution 3:
Many options, here are a couple:
mod_wsgi is an Apache module that is suitable for production environments
SimpleHTTPServer ships with Python and is easy to use
Post a Comment for "The Best Way To Use Python As A Server Scripting Language For Use On Localhost"