apache - How to run python scripts? -


i php developer , want use python project. common , simplest way run python script on server apache or lighttpd? having trouble understanding how server languages not php or asp run on servers.

in python have called wsgi. believe right now. grab python web framework, django. comes web server , documentation on how deploy later. play , things start clear up.


the longer version python general purpose language - it's not designed web php is. need bit of work web stuff , have frameworks (django easiest start with, why i'm recommending you).

in general should understand how web works. uses http protocol communication, build on top of tcp stack, web application server, uses sockets (php has them well python) , understands http. python comes 1 build in - simplehttpserver, not production uses (it's great development, though). why there things mod_wsgi (python specific), fastcgi (general purpouse). things ways real, production grade, web server (apache, nginx) talk our python app , feed http get.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -