<Table Name>.objects.all() issue

9 views
Skip to first unread message

Kolluri Mounish

unread,
Feb 22, 2020, 9:21:12 AM2/22/20
to Django users
Hi all,

I recently started learning Django. while practicing i come across the following issue.

 while running Post.objects.all() command on modules i am facing following error


Thanks in advance
Kolluri Mounish




Capture.PNG

Vishnu Thuletiya

unread,
Feb 22, 2020, 10:02:43 AM2/22/20
to django...@googlegroups.com
You have to import Post first. 

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2955b960-bacc-4db2-afc4-b625551f8b95%40googlegroups.com.

Kolluri Mounish

unread,
Feb 22, 2020, 10:14:02 AM2/22/20
to Django users
I have imported Post. But still i'm facing same issue.

Ryan Gedwill

unread,
Feb 22, 2020, 10:23:21 AM2/22/20
to django...@googlegroups.com
Can we see the code for the model? Are you sure the column name is author_id, and have you ensured it’s actually been migrated and exists in your database?

Ryan Gedwill

On Feb 22, 2020, at 7:14 AM, Kolluri Mounish <kolluri...@gmail.com> wrote:


I have imported Post. But still i'm facing same issue.

--
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...@googlegroups.com.

Kolluri Mounish

unread,
Feb 22, 2020, 10:43:52 AM2/22/20
to Django users
Issue Resolved!!!!!!!!!
Thank you so much @Ryan Gedwill. 
i actually did some modifications to column name and forgot to migrate it. 
Reply all
Reply to author
Forward
0 new messages