Hello,

This may be what you're looking for:
python manage.py reset [appname]

Which will regenerate all your application's tables with your new  
changes. Be warned, though, that command will delete all the existing  
rows in each table.

Good luck,
Darin




On Dec 3, 2006, at 2:09 PM, marksibly wrote:

>
> Hi,
>
> What's the 'right' way to update the database when you change a model?
> For example, when you add a new field?
>
> I initially thought 'manage.py syncdb' would detect and handle this  
> for
> you, but it doesn't appear to.
>
> Currently, I'm using MySql to 'DROP TABLE' and then using 'manage.py
> syncdb' again, but this seems a bit cumbersome.
>
> Bye!
> Mark
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to