Page 307 -
P. 307

mobile app development




                              With your new function written and added to the athletemodel module, create a new CGI
                              script that, when called, returns the data from the get_names_from_store() function to
                              the web requester as a JSON data stream.
                              Call your new script cgi-bin/generate_names.py.
                              Hint: Use application/json as your Content-type.





































                                                      I may be small, but I’m
                                                      mighty capable. Whether
                                                      you need a web page or just
                                                      your data, you can count on me
                                                      to get the job done.















                                                                                      you are here 4    271
   302   303   304   305   306   307   308   309   310   311   312