Wednesday, April 29, 2015

Re: clear database (drop all tables)

As usual, StackOverflow to the rescue ...

http://stackoverflow.com/questions/3414247/django-drop-all-tables-from-database


On Wednesday, 29 April 2015 12:11:51 UTC+2, lars van Gemerden wrote:
Hi all,

Is there a simple programmatic way to drop all tables in the database (e.g. for testing purposes), also without input prompts?

Cheers, Lars

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ae2099c6-9fea-46a9-928d-f5aa99cc7afb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment