get_extra_restriction() missing 1 required positional argument: 'related_alias' error django
Asked Answered
S

2

5

I deployed my django site on heroku and when i run my url which uses django taggit in it error shows up. I am using django taggit for meta keys to find related blogs.

Sandeesandeep answered 27/12, 2021 at 15:18 Comment(1)
Are you using Django 4.0?Pomona
P
7

If you are using Django 4.0, there was an issue at django-taggit. They have already fixed it, you should try to upgrade your package:

pip install django-taggit --upgrade

If this does not work, you can also try install actual version from git like this:

pip uninstall django-taggit
pip install git+https://github.com/jazzband/django-taggit.git@d0833966d357ed1e1b9b1f40c39c1ed99affbf9b
Pomona answered 27/12, 2021 at 15:30 Comment(4)
it does not work:( but thanksSandeesandeep
I updated the answer, you can try one more option. If this does not work too, you should give us more information about your problem.Pomona
Thanks, but it does not work for me. I posted the answer.Sandeesandeep
The second solution worked for me. I just changed the install line into "pip install git+github.com/jazzband/django-taggit.git@master"Modestine
S
1

problem was the version of the django. From now i am using Django==3.2.5, and everything works fine.

Sandeesandeep answered 27/12, 2021 at 15:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.