PacktPublishing / Django-3-by-Example

Django 3 by Example (3rd Edition) published by Packt
https://djangobyexample.com/
MIT License
715 stars 690 forks source link

chapter 2 errors: "no such colum: blog_post.tags" and "cannot query "jazz": Must be "Post" instance". #115

Open luifernandof opened 1 year ago

luifernandof commented 1 year ago

Finishing chapter 2, my app indicates the two errors: Both errors are related to tags. Checking the Post model table, it is not possible to identify the columns indicated in the errors, "blog_post.tags", in the same way in relation to "tag" or "slug-tag". The fields in the Post table are those assigned in the created model. I can't see the functions and attributes of the taggit module, so I can't identify the source of the error. Thank you for any advice/comments on this matter. Thanks once again.

IgorSok4 commented 1 year ago

Hello, same issue here. I think it is about taggit updates since this book is already 2 years old.

luifernandof commented 1 year ago

Hi Igor, thanks for the comment. You're right, it's a great possibility. The question is what impacts the sequence of the other chapters. Thanks again.

levy1911 commented 1 year ago

Try updating django-taggit package, it fixed my case.

luifernandof commented 1 year ago

Thanks Levy for the support. My version of taggit is django-taggit 3.1.0. The problem still persists. Thanks.

pythonyalfa commented 7 months ago

did this ever get fixed ?