如何从灯具远程加载数据 [英] How can I loaddata from a fixture remotely
本文介绍了如何从灯具远程加载数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在GAE上使用Django-nonrel时,如何在部署后将夹具加载到服务器中?我可以通过
With Django-nonrel on GAE, how do I do I load in a fixture to the server after deploying? I'm able to do it locallay via
python manage.py loaddata夹具名称
python manage.py loaddata fixturename
但是如何在appspot.com上已部署的应用程序上做到这一点?
But how can I do it on a deployed app that is already on appspot.com?
推荐答案
我相信答案是
python manage.py remote loaddata fixturename
,带有一个附加的远程"字样.我已经对此进行了测试(大约在输入此内容前五分钟).它将提示您输入Gmail帐户和密码.
with an additional 'remote' word. I've tested that (about five minute before I type this). It will prompt for your gmail account and password.
您还需要在app.yaml中启用remote_api(如果我没记错的话)
You also need to enable remote_api in app.yaml (if i'm not mistaken)
builtins:
- remote_api: on
我希望这项工作.
这篇关于如何从灯具远程加载数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文