1
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.
0
- [Answer]-Inconsistent results from Django ORM
- [Answer]-Django saving form field in generic or functional view
- [Answer]-Select_related django. Why i can't using select_related in my project?
- [Answer]-Django save method overwritten and type object 'cursos' has no attribute 'object'
- [Answer]-Django – Call model's method on demand to filter and prefetch data from a reversed foreignkey
Source:stackexchange.com