#35522: 'NoneType' object has no attribute 'lstrip' when loading single template
with relative include without origin
---------------------------------+--------------------------------------
Reporter: Hovi | Owner: nobody
Type: Bug | Status: closed
Component: Template system | Version: 5.0
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Changes (by Sarah Boyce):
* resolution: => needsinfo
* status: new => closed
Comment:
Hi Hovi, thank you for this report and the tests! I can see what you're
pointing out. 👍
It is not clear to me why someone would want to do this and so I am not
sure whether to accept this as an issue yet.
I think one way we could approach this would be to have
[https://docs.djangoproject.com/en/5.0/ref/templates/api/#django.template.base.Origin.template_name
Origin.template_name] default to `<unknown_template>` similar to the
`<unknown_source>` default. However, that is a change to documented
behaviour and would need a discussion and have others agree that this is
the best approach.
Can you start a discussion on the
[https://forum.djangoproject.com/c/internals/5 Django forum] and see
whether others agree that this is 1) an issue and 2) how best to approach
resolving this?
--
Ticket URL: <https://code.djangoproject.com/ticket/35522#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701900cfd448b-649a734b-d248-4f32-8151-ae566241baac-000000%40eu-central-1.amazonses.com.