I installed the apache2 server. And the lib mod_python.
You'll have to edit /var/apache2/apache2.conf to add a handler for the python files. See this wizard.
To restart sudo apache2 -k restart
If you have it configured, the call to the url http://localhost/test/function will directly call the function "function" in your test.py script. Isn't it nice?
And the call to the url http://localhost/test/function?name=you will call the function with the parameter you.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment