Is this a template bug or not?

Hello everyone,

what is your opinion on this:
https://code.djangoproject.com/ticket/35522

How would you resolve it?

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. :thinking:

What are you expecting in this case?

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'.