app engine datastore auto-clears every time project runs

后端 未结 2 799
时光取名叫无心
时光取名叫无心 2020-12-12 05:29

Every time I run my project (eith dev_appserver.py myapp or manage.py runserver in django), the datastore will be cleared. I have persisted the data by model.put() or model.

相关标签:
2条回答
  • 2020-12-12 06:02

    in fact the --datastore_path= is not the best flag to use because it only sets part of the storage options The best IMHO is:

    --storage_path=...

    Path at which all local files (such as the Datastore, Blobstore files, Google Cloud Storage Files, logs, etc) will be stored, unless overridden by --datastore_path, --blobstore_path, --logs_path, etc.

    found at https://developers.google.com/appengine/docs/python/tools/devserver?csw=1

    0 讨论(0)
  • 2020-12-12 06:13

    you can use the --datastore_path=/datastore/path/dev_appserver.datastore parameter with dev_appserver.py

    --blobstore_path=/path/to/blobstore/folder is an option too.

    0 讨论(0)
提交回复
热议问题