Skip to content Skip to sidebar Skip to footer

GAE Works But Import Webapp2 Failed In Spyder

this is simple code to test the redirection in html.and I use Spyder to write Python Code. import webapp2 from valid_day import valid_day from valid_month import valid_month from v

Solution 1:

The GAE app code is not intended to be executed directly, as a standalone app, it needs to be executed by the development server which knows how to load and execute the app code (while complementing it with the emulated GAE python sandbox functionality). See Using the Local Development Server.

You might be able to execute it together with the SDK (i.e. execute dev_appserver.py and pass it the same args as when you did when you got it working without spyder). But I'm not familiar with Spyder, I'm unsure if it supports such execution of your app code through a 3rd party tool (and if it does - if it really is practical/useful for development)


Post a Comment for "GAE Works But Import Webapp2 Failed In Spyder"