Re: clear database (drop all tables)

2015-04-29 Thread Derek
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+unsubscr...@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.


Re: clear database (drop all tables)

2015-04-29 Thread Bill Freeman
With suitable privileges, you can drop the database and recreate it.  In at
least some databases the user privilege grants are not lost with the
database and don't have to be recreated when the database is.

And, if you're using SQLite, just remove the file.

On Wed, Apr 29, 2015 at 6:10 AM, 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+unsubscr...@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/0ebbbdb5-f9ad-437b-baaa-9a39358704cd%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@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/CAB%2BAj0vtNMzONsamOT1tinWDQFCF3k9Q29yFitq7nowBUecdWA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


clear database (drop all tables)

2015-04-29 Thread lars van Gemerden
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+unsubscr...@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/0ebbbdb5-f9ad-437b-baaa-9a39358704cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.