django 自定义的过滤器在uwsgi中读不了你们怎么解决的

<p>下面是错误信息TemplateSyntaxError at / 'time_filter' is not a registered tag library. Must be one of: admin_list admin_modify admin_static admin_urls cache highlight i18n l10n log more_like_this rest_framework static staticfiles tz</p> <p>Error during template rendering In template /srv/xfz/front/templates/news/index.html, error at line 2</p> <p>'time_filter' is not a registered tag library. Must be one of: admin_list admin_modify admin_static admin_urls cache highlight i18n l10n log more_like_this rest_framework static staticfiles tz 在部署的时候用python manage.py runserver 运行没有问题 但是只要用uwsgi 就不行 , 求大佬帮忙解决下</p>

评论 1

  • 静态文件使用runserver不用设置,如果使用uwsgi就需要设置settings.py和启用static-map