首页 > 技术文章 > Django报错:TemplateSyntaxError at /project/list/ ‘project‘ is not a registered tag library.

xxks 2021-01-27 10:16 原文

原因:版本区别,需要在settings.py的TEMPLATES加上

'libraries': { 'project': 'web.templatetags.project' },

 

推荐阅读