Django: 'current_tags' is not a valid tag library

前端 未结 17 2783
悲&欢浪女
悲&欢浪女 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:14

    I was getting the same error but for a different reason so I'll tell you (in case someone else comes the same problem).

    I had everything right but I had my custom tag inside a folder named template_tags and after a long search I found out that it had to be templatetags, and now it works. So check the folder name is exactly templatetags.

提交回复
热议问题