[尝试加载crispy_forms时引发ImportError

问题描述 投票:0回答:1
ImportError raised when trying to load  
‘crispy_forms.templatetags.crispy_forms_field’: No module named  
‘django.utils.lru_cache’

当我尝试运行以下命令时,我收到该错误^^:

heroku运行python manage.py migration

我检查了我的脆皮表格版本= 1.8.1

请帮助!

python django django-crispy-forms
1个回答
0
投票
如果我没记错的话,最有可能是因为您的Django版本可能已过时。根据this issue from the official crispy-forms repo (found here),您需要Django 3.0

尝试更新,看看是否可以解决您的问题。

© www.soinside.com 2019 - 2024. All rights reserved.