support running inside dev_appserver.py #238
Labels
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
🚨
This issue needs some love.
type: question
Request for information or clarification. Not an issue.
hi all! first off, thank you for porting ndb to python 3. all of us with python 2 standard app engine apps appreciate it!
i'm trying to use it locally inside dev_appserver.py, because reasons, and it doesn't seem to work out of the box, probably because dev_appserver gives it a sanitized environment that doesn't include any
DATASTORE_*
variables. it always tries to connect to production datastore.googleapis.com, which obviously i don't want.if i manually modify my client and point it to the emulator after i've created it, with eg
client.host = 'localhost:24754'; client.secure = False
, it works fine.any chance you could add dev_appserver support? thanks in advance!
Environment details
google-cloud-ndb 0.2.0
Cloud SDK (gcloud) 270.0.0
Mac OS X 10.14.6
Python 3.6.5
Steps to reproduce
dev_appserver.py --support_datastore_emulator ...
with ndb.Client().context(): ...
The text was updated successfully, but these errors were encountered: