#36028: Add option to choose a template engine
-------------------------------------+-------------------------------------
     Reporter:  Foucauld Degeorges   |                     Type:  New
                                     |  feature
       Status:  new                  |                Component:
                                     |  contrib.admin
      Version:  5.1                  |                 Severity:  Normal
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
 Context:
 We have two template engines in our app - one that is permissive with
 invalid variables (e.g. accessing a property on None), the other one
 raises on invalid variables.
 Django Admin requires the permissive one as it makes use of the fallback
 mechanic on invalid variables.

 But we prefer for all our other renders (views, emails, PDFs) to be strict
 on invalid variables. So we want our strict template engine to be the
 default one, and specify a custom one for the admin.

 The idea would be a Django admin setting named something like
 {{{ADMIN_TEMPLATE_ENGINE_NAME}}}, that sets the {{{using}}} argument of
 all {{{TemplateResponses}}} returned by admin views.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36028>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/01070193e308768f-cae9a3f9-476c-4597-87e5-3af735c7afab-000000%40eu-central-1.amazonses.com.

Reply via email to