On Monday, 8 July 2013 10:36:57 UTC+1, Nigel Legg wrote: > Thanks Daniel. > Before trying that, I went nto the python shell, imported the DataTable > model, and tried DataTable.objects.all(), and got the error: > DatabaseError: no such column: myapp_datatable.datFile. > I tried re-running syncdb, but still get the same error. Am I using > reserved names here, or is there another issue with my code? These are the > most logical names for what I am trying to do. > Many thanks in advance. >
Syncdb doesn't modify your existing tables if you've changed your models after initially running it. You'll need to modify the db schema manually, or use the third-party tool South: http://south.aeracode.org/ If you're just starting out and don't have any data you need to keep, the easiest thing is probably to just drop the tables and re-run syncdb though. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.