Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.python Subject: Re: SQLite3 and web server Date: Fri, 21 Aug 2015 09:13:56 +0200 Organization: Decebal Computing Lines: 25 Message-ID: <87lhd5p0zv.fsf@Equus.decebal.nl> References: <87pp2hp3vg.fsf@Equus.decebal.nl> <55d6ca35$0$1665$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="528adfd6ad074c92fdc6a7f8fb9e23d8"; logging-data="4443"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18zrxl0AutSWEgdtANxHZ371rIhEcJmjPk=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:MP7Cjrq6XtS+ZCl0v5YbYCq6w1Y= sha1:aHVjnBK+JAlL2b7apWAtMHSk5Sg= Xref: csiph.com comp.lang.python:95517 On Friday 21 Aug 2015 08:50 CEST, Steven D'Aprano wrote: >> I would like to retrieve the information out a SQLite3 database. I >> did some Googling, but until now I did not find something useful. >> How would I implement this? > > I feel that by answering this question, I'm in the same position as > someone telling terrorists how best to build a dirty bomb. Oh well. > > https://docs.python.org/3/library/sqlite3.html > > But surely you need to find out how to access Sqlite from > Javascript, not Python? This doesn't seem to be related to Python in > any way. Just because the web server is written in Python doesn't > mean that it's a Python problem. Your web page is generated from > Javascript, not Python. 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. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof