我在 heroku 上部署了我的 django 站點,當我運行使用 django taggit 的 url 時,出現錯誤。我使用 django taggit 作為元鍵來查找相關的博客。
uj5u.com熱心網友回復:
如果您在使用Django 4.0,有一個問題的django-taggit。他們已經修復了它,您應該嘗試升級您的軟體包:
pip install django-taggit --upgrade
如果這不起作用,您還可以嘗試從 git 安裝實際版本,如下所示:
pip uninstall django-taggit
pip install git https://github.com/jazzband/django-taggit.git@d0833966d357ed1e1b9b1f40c39c1ed99affbf9b
uj5u.com熱心網友回復:
問題是django的版本。從現在開始我使用 Django==3.2.5,一切正常。
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/395950.html
標籤:姜戈 django-taggit Django 错误 django 标签
