# Is this a template bug or not?

**URL:** <https://forum.djangoproject.com/t/is-this-a-template-bug-or-not/32024>\
**Category:** Django Internals\
**Created:** [June 12, 2024, 3:37pm UTC](https://forum.djangoproject.com/t/is-this-a-template-bug-or-not/32024 "2024-06-12T15:37:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hovi](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/hovi/32/18094_2.png) [@hovi](https://forum.djangoproject.com/u/hovi)\
**Post date:** [June 12, 2024, 3:37pm UTC](https://forum.djangoproject.com/t/is-this-a-template-bug-or-not/32024/1 "2024-06-12T15:37:27Z")

</div>

Hello everyone,

what is your opinion on this:  
[https://code.djangoproject.com/ticket/35522](https://code.djangoproject.com/ticket/35522)

How would you resolve it?

---

<div class="post-metadata">

**Author:** ![carltongibson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/carltongibson/32/267_2.png) [@carltongibson](https://forum.djangoproject.com/u/carltongibson)\
**Post date:** [June 16, 2024, 12:47pm UTC](https://forum.djangoproject.com/t/is-this-a-template-bug-or-not/32024/2 "2024-06-16T12:47:53Z")

</div>

Hi @hovi.

It would be handy if you could describe the issue rather than just linking to the ticket. (Also though explaining rather than just having the test would help.)

This looks like expected behaviour to me. It’s not clear how relative paths could ever be resolved without an origin. 🤔

What are you expecting in this case?

---

<div class="post-metadata">

**Author:** ![hovi](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/hovi/32/18094_2.png) [@hovi](https://forum.djangoproject.com/u/hovi)\
**Post date:** [June 25, 2024, 10:05am UTC](https://forum.djangoproject.com/t/is-this-a-template-bug-or-not/32024/3 "2024-06-25T10:05:52Z")

</div>

I get it now. I thought template was abstraction that doesn’t do path resolving and that is done later on rendering level, but now makes sense.

In that case I only expect more clear exception, that tells me, that I am using relative paths without origin rather than `'NoneType' object has no attribute 'lstrip'`.
