Re: [Dorset] Tools / Methods to Add Content to Web Pages for Non-Techies

2016-11-25 Thread Ralph Corderoy
Hi Terry, > > If it's JSON, use a Python library to read and write JSON, not do ad > > hoc parsing with string functions. That should also ensure correct > > encoding of characters, e.g. `£', depending what staff enter. > > OK. My problem at the moment is that I simply re-used the code I >

Re: [Dorset] Tools / Methods to Add Content to Web Pages for Non-Techies

2016-11-22 Thread PeterM
If it's JSON, use a Python library to read and write JSON, not do ad hoc parsing with string functions. That should also ensure correct encoding of characters, e.g. `£', depending what staff enter. OK. My problem at the moment is that I simply re-used the code I found on the Internet,

Re: [Dorset] Tools / Methods to Add Content to Web Pages for Non-Techies

2016-11-21 Thread Terry Coles
On Monday, 21 November 2016 17:56:10 GMT Ralph Corderoy wrote: > You could ditch the database and use text files for your simple needs. > Concentrate more on how to serve up a web page with a filled-in form and > process the result. Flask is a lot more than accessing a database, and > it's those

Re: [Dorset] Tools / Methods to Add Content to Web Pages for Non-Techies

2016-11-21 Thread Ralph Corderoy
I wrote: > You web server should be running your code at the root of your site's > directory so `change directory' navigation will probably be required. ...probably NOT be required. Cheers, Ralph. -- Next meeting: Bournemouth, Tuesday, 2016-12-06 20:00 Meets, Mailing list, IRC, LinkedIn, ...

Re: [Dorset] Tools / Methods to Add Content to Web Pages for Non-Techies

2016-11-21 Thread Ralph Corderoy
Hi Terry, > Hmmm. That site seems to provide some pretty comprehensive > information, especially if you are fairly aux faix with database > development. Unfortunately, I'm not ;-) You could ditch the database and use text files for your simple needs. Concentrate more on how to serve up a web

Re: [Dorset] Tools / Methods to Add Content to Web Pages for Non-Techies

2016-11-21 Thread Terry Coles
On Sunday, 20 November 2016 18:34:28 GMT Ralph Corderoy wrote: > Sounds like each of your two existing web sites could do with an "admin" > entry point where one of the users known to it can edit the data it's > serving. Yes that is exactly what I had in mind. > > If I had a starter (preferably

Re: [Dorset] Tools / Methods to Add Content to Web Pages for Non-Techies

2016-11-20 Thread Ralph Corderoy
Hi Terry, > Has anyone any ideas? Sounds like each of your two existing web sites could do with an "admin" entry point where one of the users known to it can edit the data it's serving. > If I had a starter (preferably in Python), I'd definitely give it a > go. http://flask.pocoo.org/ has a

[Dorset] Tools / Methods to Add Content to Web Pages for Non-Techies

2016-11-20 Thread Terry Coles
Hi, I'm working on the Wimborne Model Town stuff again. The Bells project is currently awaiting hardware deliveries and other dependencies, so I've returned to our two Web projects; the Audio Guide and the Children's Quiz. Both of these facilities have been based on code that I culled from