Using AppEngine without a framework

48 views
Skip to first unread message

Santiago Basulto

unread,
Aug 28, 2011, 8:33:20 PM8/28/11
to google-a...@googlegroups.com
Hello People, i know this question might sound idiot, but i don't know where to start. When i use some kind of framework, it generally uses some kind of WSGI interface and in my actions i get requests, responses, and those kind of things.

For example, with webapp framework:

def sayHello(self):
   
self.response.headers['Content-Type'] = 'text/plain'
   
self.response.out.write('Hello, webapp World!')

How i can get requests data (URL, headers, params, cookies, etc) without any framework? (just with the default appengine (app.yaml) routing.
Thank you!

Greg

unread,
Aug 28, 2011, 11:09:09 PM8/28/11
to Google App Engine

Santiago Basulto

unread,
Aug 28, 2011, 11:51:43 PM8/28/11
to google-a...@googlegroups.com
Thank you Greg, but in the getting started guide it uses webapp
framework. I'm trying to get information from the request without
using any framework.

2011/8/29 Greg <g.fa...@gmail.com>:

> --
> You received this message because you are subscribed to the Google Groups "Google App Engine" group.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
>
>

--
Santiago Basulto.-

keakon lolicon

unread,
Aug 29, 2011, 1:06:40 AM8/29/11
to google-a...@googlegroups.com
You can parse os.environ to get path, parameters, etc, then print your output.
Or you can use WSGI, webapp is a simple WSGI framework. Read its code, then you'll find the way to build your own framework.

----------
keakon

My blog(Chinese): www.keakon.net
Reply all
Reply to author
Forward
0 new messages