문제

I just started "Hello World" app on GAE and Django-nonrel. I saw a couple of differences between using pure Django on relational databases and Django-nonrel. The most sadly is South migration system inability in non-relational databases. Is it exist some way to migrate models to database with GAE? If not, what strategy of models developing you would recommend in this case?

도움이 되었습니까?

해결책

South's main concern is handling issues regarding changes in relational db schemas. This is not required in a non-rel db, where smart coding practices and simple scripts can handle migrations as an online operation.

See also:

Keep in mind that many Django field types are supported by djangoappengine. This means you can use dumpdata on your sql project to save your data to files and later use loaddata in your new project to load it into your models.

If you need further processing, you can create a small script that copies data from the old models to the new models.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top