Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #95515

SQLite3 and web server

From Cecil Westerhof <Cecil@decebal.nl>
Newsgroups comp.lang.python
Subject SQLite3 and web server
Date 2015-08-21 08:11 +0200
Organization Decebal Computing
Message-ID <87pp2hp3vg.fsf@Equus.decebal.nl> (permalink)

Show all headers | View raw


At the moment I serve a AngularJS web application with:
    python3 -m http-server

This only servers static html pages with the data contained in js
files, like:
        $scope.links = [
            { desc: 'Album',            url: 'https://plus.google.com/collection/MuwPX'                  },
            { desc: 'Heron Sunbathing', url: 'https://plus.google.com/+CecilWesterhof/posts/bHvSzBGobEj' },
            { desc: 'Heron Fishing',    url: 'https://plus.google.com/+CecilWesterhof/posts/TY3asc5oCnB' },
            { desc: 'Water Lily',       url: 'https://plus.google.com/+CecilWesterhof/posts/AtTwhL8SdnH' },
            { desc: 'Tree at Pond',     url: 'https://plus.google.com/+CecilWesterhof/posts/TyiZbUWdnrm' },
            { desc: 'Fish',             url: 'https://plus.google.com/+CecilWesterhof/posts/MoQ7vXs8HqP' },
            { desc: 'Fountain',         url: 'https://plus.google.com/+CecilWesterhof/posts/BDYkPKSMUwZ' },
            { desc: 'Digitalis',        url: 'https://plus.google.com/+CecilWesterhof/posts/ed3ZGNzb8kM' },
            { desc: 'Sunset',           url: 'https://plus.google.com/+CecilWesterhof/posts/DPbHHSFXBY4' },
            { desc: 'Digitalis 2',      url: 'https://plus.google.com/+CecilWesterhof/posts/ZZtSUwNb6RC' },
            { desc: 'Water Lilies',     url: 'https://plus.google.com/+CecilWesterhof/posts/LY62DqLEJhG' },
            { desc: 'Flower',           url: 'https://plus.google.com/+CecilWesterhof/posts/XFKyTcoakcy' },
            { desc: 'Waterfalls',       url: 'https://plus.google.com/+CecilWesterhof/posts/bfg5irDAn2T' },
            { desc: 'Frogs',            url: 'https://plus.google.com/+CecilWesterhof/posts/jKr5B6EQyo1' },
            { desc: 'Flowers',          url: 'https://plus.google.com/+CecilWesterhof/posts/iPQbBrTbcnm' },
            { desc: 'Sheep',            url: 'https://plus.google.com/+CecilWesterhof/posts/3a2mBo7om4H' },
            { desc: 'Beetle',           url: 'https://plus.google.com/+CecilWesterhof/posts/KnNtis2Gqxf' },
            { desc: 'Dove',             url: 'https://plus.google.com/+CecilWesterhof/posts/XA5RcC2Cxbv' },
            { desc: 'City Walk',        url: 'https://plus.google.com/+CecilWesterhof/posts/R9me9AKQC6n' },
            { desc: 'Boar',             url: 'https://plus.google.com/+CecilWesterhof/posts/9bfpBiQPYen' },
            { desc: 'Bird',             url: 'https://plus.google.com/+CecilWesterhof/posts/X6gFE3oxXLY' },
            { desc: 'Goose',            url: 'https://plus.google.com/+CecilWesterhof/posts/H4w6JvnQkcU' },
            { desc: 'On mothers wings', url: 'https://plus.google.com/+CecilWesterhof/posts/PY4Nm1TASvx' },
            { desc: 'Flowers',          url: 'https://plus.google.com/+CecilWesterhof/posts/9o1i2NgoSfV' },
        ]

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?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

SQLite3 and web server Cecil Westerhof <Cecil@decebal.nl> - 2015-08-21 08:11 +0200
  Re: SQLite3 and web server Steven D'Aprano <steve@pearwood.info> - 2015-08-21 16:50 +1000
    Re: SQLite3 and web server Cecil Westerhof <Cecil@decebal.nl> - 2015-08-21 09:13 +0200
      Re: SQLite3 and web server Chris Angelico <rosuav@gmail.com> - 2015-08-21 17:27 +1000
        Re: SQLite3 and web server Cecil Westerhof <Cecil@decebal.nl> - 2015-08-21 11:44 +0200
          Re: SQLite3 and web server Michael Torrie <torriem@gmail.com> - 2015-08-21 08:19 -0600
            Re: SQLite3 and web server Cecil Westerhof <Cecil@decebal.nl> - 2015-08-21 17:23 +0200
          Re: SQLite3 and web server Michael Torrie <torriem@gmail.com> - 2015-08-21 08:57 -0600
            Re: SQLite3 and web server Cecil Westerhof <Cecil@decebal.nl> - 2015-08-22 13:38 +0200
  Re: SQLite3 and web server Peter Otten <__peter__@web.de> - 2015-08-21 11:32 +0200
    Re: SQLite3 and web server Cecil Westerhof <Cecil@decebal.nl> - 2015-08-21 17:12 +0200
      Re: SQLite3 and web server Peter Otten <__peter__@web.de> - 2015-08-22 09:51 +0200
        Re: SQLite3 and web server Cecil Westerhof <Cecil@decebal.nl> - 2015-08-22 13:41 +0200
          Re: SQLite3 and web server Peter Otten <__peter__@web.de> - 2015-08-22 14:23 +0200

csiph-web