Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

delete content of table django

python manage.py shell
>> from {app_name}.models import {model_name}
>> {model_name}.objects.all().delete()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #content #table #django
ADD COMMENT
Topic
Name
8+2 =