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