I'm new to Django and databases in general. I made a new app and than added a class to its model. After that I added another thing to my class, and I ran this command "python3.2 manage.py sql todo". and I got this
CREATE TABLE "todo_item" (
"id" integer NOT NULL PRIMARY KEY,
"description" text NOT NULL,
"dueDate" date NOT NULL,
"status" varchar(20) NOT NULL
);
COMMIT;
I thought that will do it, but I still get this error:
Exception Value: no such column: todo_item.status
status is the new thing that I want to add to my item class.
Aucun commentaire:
Enregistrer un commentaire