#24813: Document that {% include %} suppresses errors when DEBUG=False
--------------------------------------+------------------------------------
     Reporter:  pratyushmittal        |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Documentation         |                  Version:  1.8
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by timgraham):

 I'm not sure what you have in mind, but it doesn't make sense to me that
 we can enforce design decisions of the Django template language onto other
 templating languages. In particular, the relevant documentation can be
 found in the [https://docs.djangoproject.com/en/dev/howto/custom-template-
 tags/#writing-the-renderer custom template tags docs]:

  `render()` should generally fail silently, particularly in a production
 environment. In some cases however, particularly if
 `context.template.engine.debug` is `True`, this method may raise an
 exception to make debugging easier. For example, several core tags raise
 `django.template.TemplateSyntaxError` if they receive the wrong number or
 type of arguments.

--
Ticket URL: <https://code.djangoproject.com/ticket/24813#comment:5>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/072.09abb44de57da5f0b45cb7f283fd9274%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to