On Thursday, 21 January 2021 14:28:42 GMT Ralph Corderoy wrote:
> https://stackoverflow.com/questions/19794695/flask-python-buttons/27952991#2
> 7952991 is the same approach as the book.  You may find the book better
> written than trying to piece it together from SO answers.  :-)

Ralph,

You are right of course about the dangers of piecing a solution together from 
SO answers.  It took me quite a while but I was able to get something working 
using the preferred solution at that site.

The trouble with Stack Overflow and other like sites is that they often assume 
that the reader already knows everything about the subject, except for the 
problem under discussion.  In this case a novice like me had to 'know' that 
the 'request' method had to be explicitly imported from the flask module.  I 
had the same problem with 'form'.

That solution was provided by Miguel Grinberg the author of the Tutorial that 
you suggested that I use instead, so I was fairly comfortable that I would get 
something to work.

On a related topic I bought Miguel's book from Amazon, but found that the 
Kindle edition was not searchable which made it extremely hard to find things 
without reading the book from cover to cover (416 pages, no index, no Table of 
Contents).  Not good for a text book.

Eventually I discovered that indexing worked in that book if I viewed it using 
the Kindle Reader in Firefox, but not when using the Kindle Reader in 
Chromium.  Also the book is not searchable on my Kindle device.

-- 



                Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2021-02-02 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk

Reply via email to