flush will only flush the data from the base. It doesn't modify the table structure as far as I remember. You can have a look at the thread "Model Codng/Model Usage Pitfall?" which was on the same topic yesteday.
Regards, Xavier. Le 15 févr. 2011 à 09:01, Chen Xu a écrit : > thanks, flush does help, but it delete everything, however I have 2 apps in > my db, so is there any commands (ex: sqlclear <app_name>) that allows me to > only remove the tables in particular app?? > > Thanks > > On Mon, Feb 14, 2011 at 11:51 PM, Szabo, Patrick (LNG-VIE) > <patrick.sz...@lexisnexis.at> wrote: > I think sqlflush just prints the SQL-Statement. > > Flush will actually du the job > > > Hope that helps ! > > > > . . . . . . . . . . . . . . . . . . . . . . . . . . > Patrick Szabo > XSLT-Entwickler > LexisNexis > Marxergasse 25, 1030 Wien > > patrick.sz...@lexisnexis.at > Tel.: +43 (1) 534 52 - 1573 > Fax: +43 (1) 534 52 - 146 > > Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im > Auftrag von Chen Xu > Gesendet: Dienstag, 15. Februar 2011 08:45 > An: django-users@googlegroups.com > Betreff: Re: Having trouble synchronizing the database, can someone help? > > > thanks very much everyone, but I just have one more small question. > > I tried to use some python manage.py command to delete tables (ex: sqlflush, > sqlreset), > but they all just print out the sql statement without doing the real job, so > what is the command to do the actual removal of the tables? > > > Thanks > > > > > -- > 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. > > > > -- > ⚡ Chen Xu ⚡ > > -- > 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. -- 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.