On Monday, February 14, 2011 09:25:58 am Tom Evans wrote:

> Django does not take care of maintaining the structure of your tables.
> If you change your model definition to add a new attribute, django
> will not update your database to add the new column to your table, you
> must do it manually.
> 
> Cheers
> 
> Tom


You can use django-south [1] to help with schema maintenance and migration.

It's really worth it if you don't want to be doing SQL all day long with lots 
of model refactoring/changes. (as Tom's second post suggests).

[1] http://south.aeracode.org/docs/about.html


Mike
-- 
She was good at playing abstract confusion in the same way a midget is
good at being short.
                -- Clive James, on Marilyn Monroe

-- 
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