On Fri, May 22, 2009 at 9:43 AM, Herta <herta...@gmail.com> wrote: > > yes,i remember i altered my model. > But how can i alter the table structure, or how can i see the raw > table structure and change my model to the original one? > > On May 22, 10:25 pm, Masklinn <maskl...@masklinn.net> wrote: > > On 22 May 2009, at 15:41 , Herta wrote:> no such column: > dbDECP_gene_variants.Variation_IDRequest > > > > The message seems pretty clear: you're asking for the column > > "Variation_IDRequest" and the ORM can't find it in the table > > "dbDCEP_gene_variants". > > > > You probably made a typo in creating a queryset (via filter, for > > instance), either forgetting an underscore (if Variation is a > > relationship) or plain and simply typoing a name. > > > > Or you altered your model, and then ran your app again without > > altering the table (syncdb doesn't alter existing tables, database > > migrations are not part of its job description). > > > You can either use an application like django-evolution or south to migrate your tables, you can issues the ALTER TABLE SQL yourself, or you can dump the tables and recreate them.
Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---