error with syncdb

87 views
Skip to first unread message

allisongardner

unread,
Jul 4, 2008, 4:36:20 AM7/4/08
to Django users
I have created my models, validated them etc and looked at the sqlall
output and everything was fine. However when i went to syncdb my
database it created 5 of 10 tables but and error on the 6th table
(suddenly found multiple primary keys!) caused the process to stop. I
fixed the problem in my models with the problem table (well i
commented it) but when i run sqlall the original sql shows up and
syncdb still won't create the remaining tables. Why won't the sql
change when i change my models and what should i do. I looked at the
database in phpmyadmin and 5 of the tables are present.
In addition (but this maybe a separate issue I don't know) when i try
to look at the admin pages for the cretaed tables I get an error:
ProgrammingError: (1146, "Table 'amyprot.django_session' doesn't
exist"
Help!

allisongardner

unread,
Jul 4, 2008, 4:54:28 AM7/4/08
to Django users
IGNORE ME!! For some reason best known to my computer and Django it
now works!!!! Go figure!

On Jul 4, 10:36 am, allisongardner
Reply all
Reply to author
Forward
0 new messages