Django: 'current_tags' is not a valid tag library

前端 未结 17 2789
悲&欢浪女
悲&欢浪女 2020-12-23 18:41

I have a small Django project I received from a friend. The code works perfectly on his system. However, on my system I get the following error message when running the serv

17条回答
  •  既然无缘
    2020-12-23 19:08

    In my case it was - I am using

    @register.inclusion_tag('template-to-use.html')
    

    I forgot to create that template and right away it started working. I know above answers are more related to most of the issues - but hope maybe someone find it useful. It should have gotten to me:

    Template does not exist
    

    but it did not and this worked.

提交回复
热议问题