Django: 'current_tags' is not a valid tag library

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

    Please ensure your templatetags folder is initialized with python, if you are in doubt, just take bakup of all files,

    Remove all files, Inside templatetags folder create init.py file only, then restart your server,

    Now your folder is under Python, then do your stuff.

    This works for me...

提交回复
热议问题