Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[django] problems with tables
#1
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
Reply
#2
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
Reply
#3
Ok I will, I'm at school right now
Reply
#4
I CAN'T FIND ANY TABLES... GRRR!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 3,306 Jun-30-2019, 12:21 AM
Last Post: scidam
  Lerning django 2.1, having problems with tutorial funkytwig 1 2,865 Mar-22-2019, 11:05 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020