In Django, how do you delete the models that you synchronized in the database?
For example, in the Django training page, the following code was given
from django.db import models class Poll(models.Model): question = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') class Choice(models.Model): poll = models.ForeignKey(Poll) choice = models.CharField(max_length=200) votes = models.IntegerField()
Then I used python manage.py sql polls
and python manage.py sql polls
to create tables in the database. But what if I did something wrong and no longer want this model. What syntax to remove?
starcorn
source share