django升级2.1python升级3.7时出现的错误:"trying to load '%s': %s" % (entry[1], e) django.template.library.InvalidTemplateLibrary:


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不再报以上错误

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM