I’m running from appname import model, which gives me:
ImportError: No module named google.appengine.api
So I add the following Python path (the only path I could find):
PYTHONPATH=/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/:~/src/appname/src/ python
And then I run the command again. But that tells me:
ImportError: No module named yaml
I’m running Mac OS X Snow Leopard and the latest GAE. Any tips? All I want to do is run some of the methods in my model.
From dev_appserver.py:
I think it should work if you put these bits in a separate script, and import it before importing your own code.
Or, as you’ve pointed out, use the Appengine console in the SDK (but that’s not there for Linux users).