views:

17

answers:

2

Is there some method to clen all model in Django (cleen table in database)? Sorry i'm not a native english speacker. That why i'm making a lot of misstakes and some time asking question whith i cant undersand by reading official documentation. But I'm doing my best.

A: 

The reset subcommand of django-admin or manage.py will drop and recreate the tables for the supplied apps. For example, python manage.py reset auth will drop and recreate the tables for the django.contrib.auth application.

Joseph Spiros
+1  A: 

Go to your main app's directory and use manage.py:

python ./manage.py --help
python ./manage.py sqlclear --help

Use that for apps.

eruciform