# Django backend not resolv custom template tags.

**URL:** <https://forum.djangoproject.com/t/django-backend-not-resolv-custom-template-tags/20245>\
**Category:** Mystery Errors\
**Created:** [April 14, 2023, 5:59am UTC](https://forum.djangoproject.com/t/django-backend-not-resolv-custom-template-tags/20245 "2023-04-14T05:59:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sta-zot](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/sta-zot/32/13211_2.png) [@sta-zot](https://forum.djangoproject.com/u/sta-zot)\
**Post date:** [April 14, 2023, 5:59am UTC](https://forum.djangoproject.com/t/django-backend-not-resolv-custom-template-tags/20245/1 "2023-04-14T05:59:27Z")

</div>

Hi there. I have encountered such a problem. I started learning django. I have created templatetag dir in my django app as python module and inv\_tags.py in this with following contents:  
imports…  
tag\_register = template.Library()  
#@tag\_register.simple\_tag(name=“hostlist”)  
def hostList(id=None):  
if id:  
hosts = Hosts.objects.get(id=id)  
else:  
hosts = Hosts.objects.all()  
return hosts  
tag\_register.simple\_tag(hostList, ‘hostlist’)  
But when i heve started debug webserver, i had following errors:  
‘inventory\_tags’ is not a registered tag library.  
The application has been added to the INSTALLED\_APPS list in settings.py  
I can’t figure out what the problem is. I need help.

 ![tree](https://us1.discourse-cdn.com/flex026/uploads/djangoproject/original/2X/6/6e922ad30f6d6490e4635f87f3b69b0c1d55a04e.png)

second temlatetags in project level i have created later, for test.

---

<div class="post-metadata">

**Author:** ![leandrodesouzadev](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/leandrodesouzadev/32/8981_2.png) [@leandrodesouzadev](https://forum.djangoproject.com/u/leandrodesouzadev)\
**Post date:** [April 14, 2023, 12:32pm UTC](https://forum.djangoproject.com/t/django-backend-not-resolv-custom-template-tags/20245/2 "2023-04-14T12:32:11Z")

</div>

I think that should “tem **p** latetags” you’re missing the `p` there.
