What I do is remove the database and them run the syncdb command again. Some people might recommend migrations using South.
Regards. Sent from my BlackBerry wireless device from MTN -----Original Message----- From: smith jack <[email protected]> Sender: [email protected] Date: Fri, 19 Aug 2011 00:03:00 To: <[email protected]> Reply-To: [email protected] Subject: How to change the schma of database using python manage.py syncdb? for example at first i have a model named url, the code is as follows: class url(models.Model): link=models.URLField(unique=True) then i change this class as follows: class url(models.Model): link=models.URLField(unique=True) hits=models.IntegerField() at last, i use command python manage.py syncdb but was suprised to find that the schema of url table in the database is not changed so is there any method to change the shcema of table using django command? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

