import webapp2 works on google-app-engine even though I don't have webapp2 installed

前端 未结 3 2042
一生所求
一生所求 2020-12-17 07:04

When I run the following hellow world program (with the GAE Launcher) it works:

import webapp2

class MainPage(webapp2.RequestHandler):
    def get(self):
           


        
3条回答
  •  庸人自扰
    2020-12-17 07:47

    i dont use the GAE launcher but im pretty sure that if you start your app with the launcher it puts some packages into your pythonpath thats why you can import it in your app.
    i bet you cant import something from the gooogle.appengine.ext or other gae libs from your python prompt but you can in your app.

提交回复
热议问题