django升级2.1python升级3.7时出现如下的错误:
"trying to load ‘%s‘: %s" % (entry[1], e) django.template.library.InvalidTemplateLibrary: Invalid template library specified. ImportError raised when trying to load ‘crispy_forms.templatetags.crispy_forms_utils‘: cannot import name ‘allow_lazy‘ from ‘django.utils.functional‘ (C:\Users\Administrator\Envs\mxonline_py37\lib\site-packages\django\utils\functional.py)
原因是 django-crispy-forms版本过低 升级到最新版本就可以解决
我这里出错的django-crispy-forms版本是1.6.1 我升级到1.8.0不再报以上错误
django升级2.1python升级3.7时出现的错误:"trying to load '%s': %s" % (entry[1], e) django.template.library.InvalidTemplateLibrary:
原文地址:https://www.cnblogs.com/zmdComeOn/p/11846153.html
时间: 2024-10-24 15:09:22