Python Forum

Full Version: [django] problems with tables
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
There is bunch of code and stuff from the cmd too. Here is a link to the tutorial I was following - https://www.youtube.com/watch?v=aHC3uTkT9r8 - I did the exact same stuff but was getting an error. Could someone tell me if something he is doing is outdated. Start at 8:00. I ran into the problem when I typed "Post.objects.all()" at 17:40 which game me this error
Error:
django.db.utils.OperationalError: no such column: blog_post.author_id
Then I went ahead with him and typed "post_1.save()" which gave me this error -
Error:
django.db.utils.OperationalError: table blog_post has no column named author_id
check that you have tables and that those tables have those fields. the error says that even though the table exists, that particular field doesn't
Ok I will, I'm at school right now
I CAN'T FIND ANY TABLES... GRRR!