How can I loaddata from a fixture remotely

492 Views Asked by At

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?

2

There are 2 best solutions below

0
On BEST ANSWER

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.

1
On

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.