Look at south or evolution. I use south, personally. It does exactly  
this very easily.

http://south.aeracode.org/wiki/Tutorial1

To add a column to the database with south, you add it to the model,  
then:

./manage.py startmigration appname migration_name --add-field  
model.field

So, if your app was named awesome, and you added field thumb to model  
Hand, it would look like this:

./manage.py startmigration awesome added_thumb --add-field Hand.thumb

then:

./manage.py migrate

Of course, check out the tutorial.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to