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 fixturename
But how can I do it on a deployed app that is already on appspot.com?
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 fixturename
But how can I do it on a deployed app that is already on appspot.com?
I believe the answer is
python manage.py remote loaddata fixturename
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.
You also need to enable remote_api in app.yaml (if i'm not mistaken)
builtins:
- remote_api: on
I hope that work.
You should look into using the appengine bulkloader. http://code.google.com/appengine/docs/python/tools/uploadingdata.html
I've only used it with stock appengine and it works like a charm; for django-nonrel you may have to handle a few things yourself but it should still be fine.
© 2022 - 2024 — McMap. All rights reserved.