首页 > 其他分享 >问题:django.template.exceptions.TemplateSyntaxError: 'staticfiles' is not a registered tag l

问题:django.template.exceptions.TemplateSyntaxError: 'staticfiles' is not a registered tag l

时间:2023-01-04 11:34:00浏览次数:48  
标签:admin library django staticfiles tag static

 

django使用swagger自动生成API文档时,报错

 

 

解决方法:

 

在settings.py里面配置一下以下代码

'libraries': {
    'staticfiles': 'django.templatetags.static',
}

 

标签:admin,library,django,staticfiles,tag,static
From: https://www.cnblogs.com/hkwJsxl/p/17024362.html

相关文章