简体   繁体   English

如何调整我的代码以适应 Django 升级?

[英]How can I adjust my code to adapt the Django upgrade?

from django.template.base import TagHelperNode, VariableNode
ImportError: cannot import name TagHelperNode

I had upgrade Django from 1.8.14 to 1.11.17我已将 Django 从 1.8.14 升级到 1.11.17

It should be:它应该是:

from django.template.library import TagHelperNode

Reference can be found here .可以在此处找到参考。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何修改我的代码以使其与Microsoft Excel兼容? - How can I adapt my code to make it compatible to Microsoft Excel? 我如何调整我的代码以进行多处理 - How do I adapt my code for multiprocessing 我如何适应这个已弃用的 StratifiedKFold 代码 - how can i adapt this deprecated StratifiedKFold code 如何调整代码以读取其他所有行? - How can i adjust my code to read every other line? 如何调整代码以新的数字开头? - How can i adjust my code to start with a new number? 如何调整我的代码以添加计数以提供有关脚本完成位置的反馈? - How can I adapt my code to add a count to provide feedback on where the script is in regards to completion? 我怎样才能最好地调整我的 Selenium 代码以安全地输入用户名和密码? - How can I best adapt my Selenium code to enter username and password securely? 如何调整我的代码以仅删除打印所需的值 - How can i adjust my code to remove print desired values only 如何调整代码,使唯一的输出是最终迭代? - How can I adjust my code so that the only output is the final iteration? 如何调整代码以使其在多个条件下循环返回? - How can I adjust my code to allow it to loop back with multiple conditions?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM