Thursday, 15 April 2010

web development server - How I can get user input from browser using python -


I am in the middle of my personal website development and I am using a python to create a "comment segment" Which means that my visitor will comment publicly (which means, all can see it, so do not worry about username registration items). I have already set up SQL database to store those data, but I do not know how to get user input (their comments) from the browser, can a module do this in the python? (E.g., "Charfield" things in the DJENGO, but unfortunately I do not use DJGGO)

For that you will need a web framework like bottle or flask is a simple WSGI based web framework for bottle python

Using any of these you can write simple, easy-based API, set one And to get the other "Set" one can accept data from your client side and store it on your database, where your "API" should be read from your DB and returned the data.

Hope it helps.


No comments:

Post a Comment