I want to get all apps sql clear code in Django. I can use ./manage.py sqlclear
but I need to specify an appname, so is just for one app.
Is there a way or command to execute sqlclear
over all installed apps ?
Django extensions has reset_db
command which is handy.
Sample run:
(junction)➜ junction git:(master) ✗ ./manage.py reset_db
Monkey patching...
You have requested a database reset.
This will IRREVERSIBLY DESTROY
ALL data in the database "/Users/kracekumar/code/junction/db.sqlite3".
Are you sure you want to do this?
Type 'yes' to continue, or 'no' to cancel: yes
Reset successful.