Answers for "how to delete all data from database in django"

1

django clear db

python manage.py sqlflush | python manage.py dbshell
Posted by: Guest on August-16-2021
4

delete database entry using name django

obj = get_object_or_404(modelname, name=name)
obj.delete()
Posted by: Guest on November-07-2020

Code answers related to "how to delete all data from database in django"

Python Answers by Framework

Browse Popular Code Answers by Language