Hi Sam,

It looks like you've already asked this identical question, and haven't
provided any additional information in this second thread. Given the
technical question and answer format of your post, I'd suggest asking the
same on Stack Overflow. Make sure to provide additional details such as the
exact error message you are receiving on your site.

Thanks,
Dan


On Mon, Jun 3, 2013 at 1:50 PM, Sam Mak <sam....@gmail.com> wrote:

> I am trying to migrate from python to 2.7 to 2.5 but after making the
> required changes to main.py and app.yaml file, my site does not work
>
> please help... what changes should i make to these to get it to work
>
> main.py
>
> import os
> from google.appengine.ext import webapp
> from google.appengine.ext.webapp import util
> from google.appengine.ext.webapp import template
>
> class MainHandler(webapp.**RequestHandler):
>   def get (self, q):
>     if q is None:
>       q = 'index.html'
>
>     path = os.path.join (os.path.dirname (__file__), q)
>     self.response.headers ['Content-Type'] = 'text/html'
>     self.response.out.write (template.render (path, {}))
>
> def main ():
>   application = webapp.WSGIApplication ([('/(.*html)?', MainHandler)],
> debug=True)
>   util.run_wsgi_app (application)
>
> if __name__ == '__main__':
>   main ()
>
>
>
> app.yaml
>
> application: cool-gadgets
> version: 1
> runtime: python
> api_version: 1
>
>
>
> handlers:
> - url: /robots.txt
>   static_files: static/robots.txt
>   upload: static/robots.txt
>
> - url: /favicon.ico
>   static_files: static/favicon.ico
>   upload: static/favicon.ico
>
> - url: /gadgets/disney.xml
>   static_files: gadgets/disney.xml
>   upload: gadgets/disney.xml
>
> - url: /gadgets/wwe.xml
>   static_files: gadgets/wwe.xml
>   upload: gadgets/wwe.xml
>
> - url: .*
>   script: main.py
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Dan Holevoet
Google Developer Relations

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to