-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
devappserver2 not working with local shell since last GAE SDK update #97
Comments
I patched StubManager.activate_stubs as follows to get this working in the easiest way possible: def activate_stubs(self, connection):
try:
from google.appengine.tools import dev_appserver_main
self.setup_local_stubs(connection)
except ImportError:
command_line_args = sys.argv
is_local_shell = 'shell' in command_line_args and 'remote' not in command_line_args
datastore_path = connection.settings_dict.get('datastore_path', None) if is_local_shell else None
self.activate_test_stubs(connection, datastore_path) I still don't quite get why the djangoappengine setup workflow is implemented as it is. It seems that test and shell have the exact same stub setup via DatabaseWrapper. Shouldn't they be distinguished in some way? Also, setup_local_stubs needs to be fixed. |
Thanks for this @jacobg. I've ran into the same problem with newer versions of the GAE SDK—will try and use your fix. |
Thank you 👍 |
it it still an issue.as the traceback point out there is no 'old_dev_appserver' or 'dev_appserver' in module 'google.appengine.tools', I'm using google app engine version 1.9.19 on windows.
|
The old devappserver has been removed, and now local shell does not work properly. It activates the test stubs, and so does not use datastore_path.
The text was updated successfully, but these errors were encountered: