.objects.all() issue

2020-02-22 Thread Kolluri Mounish
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 -- You received this message because you are subscribed to the Google Groups

Re: .objects.all() issue

2020-02-22 Thread Vishnu Thuletiya
You have to import Post first. On Sat, 22 Feb 2020, 7:51 pm Kolluri Mounish, wrote: > 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 advan

Re: .objects.all() issue

2020-02-22 Thread Kolluri Mounish
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+unsubscr...@googlegroups.com. To view this di

Re: .objects.all() issue

2020-02-22 Thread Ryan Gedwill
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 wrote: > >  > I have imported Post. But still i'm facing same issue. > -- >

Re: .objects.all() issue

2020-02-22 Thread Kolluri Mounish
Issue Resolved! Thank you so much @Ryan Gedwill. i actually did some modifications to column name and forgot to migrate it. -- 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 i