Yes. That should be doable. If you are on Oracle, you could manually change the Column Name using the following Syntax (If you are on a different Database than Oracle then the Syntax might differ but still doable).
ALTER TABLE <Table_Name> RENAME COLUMN <Old Name> TO <New Name> And later you could change the models.py manually to reflect the New Column Name. Regards, Anurag On Mon, Apr 18, 2011 at 7:41 PM, Kann Vearasilp <vearas...@gmail.com> wrote: > Hi Anurag, > > 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? > > Kann > > On Mon, Apr 18, 2011 at 4:06 PM, Anurag Chourasia > <anurag.choura...@gmail.com> wrote: >> >> Hi Kann, >> >> Does Dropping the Table and Recreating using SyncDB work well in your >> setup? >> >> Regards, >> Anurag >> >> On Mon, Apr 18, 2011 at 7:30 PM, Kann <vearas...@gmail.com> wrote: >> > Dear all, >> > >> > I am new to django and have question about fixing the typo i made in >> > the models.py. For example, I created tables with typo in the column >> > name. So, I didn't realized the mistake and run the 'python manage.py >> > syncdb' which created the tables with the incorrect names. Later I >> > realized the typos and made changes in the "models.py" file and run >> > the "python manage.py syncdb" again, but it didn't fix the typo in my >> > column names. >> > >> > How do i fix the mistakes in the column names after the 'syncdb' is >> > already run? >> > >> > Best, >> > >> > Kann >> > >> > -- >> > 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.