#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
---------------------------------+--------------------------------------
Comment (by Hovi):

 Thanks! Started discussion here:
 https://forum.djangoproject.com/t/is-this-a-template-bug-or-not/32024

 To add extra background info - I came across this when I wanted to build
 simple management command, that goes through all my templates and just
 parses them and fail in case any of them don't parse to be run on CI
 server as part of our build. It works, if I just pass relative path of
 template as origin.template_name
 Some of our frontend developers tend to forget quotes and things in
 includes or translation tags and some pages don't get caught by other
 tests.
 Maybe there's better way to do this kind of check or better that I missed.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35522#comment:2>
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/010701900d1c36c3-77ab367a-8a06-437c-9c4f-ebd8606b37d9-000000%40eu-central-1.amazonses.com.

Reply via email to