That will reset and restore everything in your entire database, regardless of which app or project the models are in. If you have a few databases, you can specify a single one in particular by using the --database switch
Examples:
python manage.py flush
python manage.py flush --database mydatabase
https://stackoverflow.com/questions/4532681/how-to-remove-all-of-the-data-in-a-table-using-django#:~:text=If%20you%20want%20to%20remove,tables%20themselves%20will%20still%20exist.&text=Use%20this%20command%20in%20your,the%20table%20from%20the%20app.
Flush removes all data in databse
No comments:
Post a Comment