#3579: remove admin's reliance on TEMPLATE_STRING_IF_INVALID set to empty string
----------------------------------------------------+-----------------------
Reporter: Jeff Bauer <[EMAIL PROTECTED]> | Owner: nobody
Status: reopened | Milestone: post-1.0
Component: Template system | Version: SVN
Resolution: | Keywords: template
admin
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
----------------------------------------------------+-----------------------
Comment (by buriy):
Replying to [comment:17 marinho]:
> For example: a simple `/admin/auth/user/add/` is rendering this code:
> <form action="<font color='red'>form_url</font>"
method="post" id="user_form">
> <div>
When TEMPLATE_STRING_IF_INVALID is empty (by default), there's no such
problem.
Also it is said in the docs that
{{{
While TEMPLATE_STRING_IF_INVALID can be a useful debugging tool,
it is a bad idea to turn it on as a ‘development default’.
Many templates, including those in the Admin site, rely upon the silence
of the template system when a non-existent variable is encountered.
If you assign a value other than '' to TEMPLATE_STRING_IF_INVALID, you
will experience rendering problems with these templates and sites.
}}}
at http://www.djangoproject.com/documentation/templates_python/#how-
invalid-variables-are-handled
Admin interface templates are relying on this behavior now in few last
places. Patch for them is attached.
--
Ticket URL: <http://code.djangoproject.com/ticket/3579#comment:19>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---