Something like that should work (didn't test it)
class MainPage(webapp.RequestHandler):
def get(self):
f = open('my_file.csv') # my_file.csv : same level than main.py
and not static
csv = f.read()
self.response.headers['Content-Type'] = 'text/csv'
self.response.out.write(csv)
application = webapp.WSGIApplication(
[('/', MainPage)],
debug=True)
On 4 juin, 13:27, DiveIntoGAE <[email protected]> wrote:
> Can Google App Engine read CSV file and show the content in the web
> page?
>
> Can anybody give me a example?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---