I think i rember reading in the doc that you can somehow run custom sql...is 
that an option ?!

 

If this is something you don’t have to do regularly you could also just connect 
to the db with some gui-client and delete the tables there

 

Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im 
Auftrag von Chen Xu
Gesendet: Dienstag, 15. Februar 2011 09:01
An: django-users@googlegroups.com
Betreff: Re: Having trouble synchronizing the database, can someone help?

 

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 
<mailto:django-users%2bunsubscr...@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.


. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
 XSLT-Entwickler 
LexisNexis
Marxergasse 25, 1030 Wien

mailto:patrick.sz...@lexisnexis.at
Tel.: +43 (1) 534 52 - 1573 
Fax: +43 (1) 534 52 - 146 





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