I'm new to using Python in a web development environment (I've previously just used it to write scripts I run on the command line). I'm hoping to send some input parameter from an HTML page via AJAX, run a python script, and then send back to the webpage a JSON object generated by my python script. I'm trying to get this example running just to get a sense for how this works:
http://davidderiso.com/post/6168199987/using-python-and-jquery#disqus_thread
I'm getting this error message from test.py:
Failed to load resource: the server responded with a status of 501 (Unsupported method ('POST'))
Do I need to be running this python script with something like flask or bottle? Sorry, I'm a total newbie when it comes to this stuff!
Thanks!