部署了下Django
python manage.py runserver
报错ERROR: staticfiles is not a registered tag library
能跑起来
收起
当前问题酬金
¥ 0 (可追加 ¥500)
支付方式
扫码支付
支付金额 15 元
提供问题酬金的用户不参与问题酬金结算和分配
支付即为同意 《付费问题酬金结算规则》
原因没有添加注册依赖导致的
解决方法
settings.py
libraries' : { 'staticfiles': 'django.templatetags.static', }
参考链接: https://stackoverflow.com/questions/55929472/django-templatesyntaxerror-staticfiles-is-not-a-registered-tag-library
如有问题及时沟通
报告相同问题?