Have you considered using South for data migration? While South started as a relative unknown in the Django database-schema-altering world, it has slowly risen in popularity and is now widely regarded as the most popular schema migration tool for Django.

South has a few key features:

  • Automatic migration creation: South can see what’s changed in your models.py file and automatically write migrations that match your changes.
  • Database independence: As far as possible, South is completely database-agnostic, supporting five different database backends.
  • App-savvy: South knows and works with the concept of Django apps, allowing you to use migrations for some of your apps and leave the rest to carry on using syncdb.
  • VCS-proof: South will notice if someone else commits migrations to the same app as you and they conflict.

asked 28 Mar '10, 05:40

espennilsen's gravatar image

espennilsen
19671014
accept rate: 0%

edited 28 Mar '10, 08:48

rickross's gravatar image

rickross ♦♦
12.5k2914972

1

Hum, I have studied south in the last few hours, and I think it looks more powerful and mature than django-evolution...

(28 Mar '10, 20:12) Hernani Cerq... ♦♦

The suggestion was taken and as of today we bundle south migrations with osqa. Thanks for the great suggestion espennilsen.

link

answered 06 Apr '10, 09:06

Hernani%20Cerqueira's gravatar image

Hernani Cerq... ♦♦
16.8k65975
accept rate: 52%

Nice suggestions, espennilsen. South looks like an option that is well worth considering. We have touched on this issue of data migrations a little bit in our development discussions, and the idea of Django evolutions has been suggested. I'll need to understand better how South and evolutions are related, if at all. Still, it is helpful to see a concrete solution which might be able to handle the task well. Thanks!

link

answered 28 Mar '10, 08:55

rickross's gravatar image

rickross ♦♦
12.5k2914972
accept rate: 46%

Hey espennilsen, as Rick said we have slightly touched this subject before, and we were considering django-evolution which is a native django app written by one of the django developers so is probably a good candidate to be included in the django core somewhere in a near future. However this is not a final decision, and your sugestion is taken and will be considered when we discuss this more seriously. You're invited to be part of that discussion by the way :-)

link

answered 28 Mar '10, 12:18

Hernani%20Cerqueira's gravatar image

Hernani Cerq... ♦♦
16.8k65975
accept rate: 52%

(29 Mar '10, 19:01) Joseph

I toke the time to test south after espennilsen posted this question, and I really appreciate it better than django-evolution. Specially because it works much better with data migrations and not only schema migrations.

(29 Mar '10, 19:10) Hernani Cerq... ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×62
×13
×4

Asked: 28 Mar '10, 05:40

Seen: 2,012 times

Last updated: 06 Apr '10, 09:06

powered by OSQA