On Fri, Aug 21, 2015 at 5:13 PM, Cecil Westerhof <ce...@decebal.nl> wrote: > I know how to work with SQLite. What I do not know how to make a > python web-server that accepts a request from the JavaScript code and > responds with data from the SQLite3 database.
The request from JS will be some sort of HTTP transaction. It'll be AJAX or similar, and to your web server, it'll simply be another page request. (You might be using a method other than GET/POST (which are the only two that regular page loads use), but it's still a standard HTTP request.) You then respond to that request with data that you got from the database. Check out this video from PyCon. Its main thrust is "here's why websockets are great, and why other technologies are insufficient", but the background info is a tidy summary of how the web works. https://www.youtube.com/watch?v=u5QT3luWx7w ChrisA -- https://mail.python.org/mailman/listinfo/python-list