You can do this by altering the table through SQL console (if your database is sql). The commands to do the job for you is :
*mysql -u root -p* * use database_name*; //eg:-for adding new column email to table ALTER TABLE table_name ADD email VARCHAR(200); //for modifying a column ALTER TABLE table_name MODIFY column_name column_type; Thanks & Regards, Ravi Krishna My profiles: [image: Facebook]<http://www.facebook.com/profile.php?id=578709891> [image: LinkedIn] <http://www.linkedin.com/profile/edit?id=65129620&trk=hb_pro> [image: Twitter] <http://twitter.com/ravi_krishna> <http://www.wisestamp.com/email-install?utm_source=extension&utm_medium=email&utm_campaign=footer> On Tue, Apr 19, 2011 at 5:10 AM, Kenneth Gonsalves <law...@thenilgiris.com>wrote: > On Mon, 2011-04-18 at 16:11 +0200, Kann Vearasilp wrote: > > That was one of my idea, but what if the table has already been > > populated > > and I don't want to lose the data in the table? > > > > Can I just change the column name manually using SQL and modify the > > models.py afterwards? > > that is the recommended way. you can also use a migration tool like > south > -- > regards > KG > http://lawgon.livejournal.com > Coimbatore LUG rox > http://ilugcbe.techstud.org/ > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > 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 django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.