Opened 15 years ago

Closed 15 years ago

#12052 closed (invalid)

If settings.py has TEMPLATE_STRING_IF_INVALID set, adding new user from admin doesn't work

Reported by: anonymous Owned by: nobody
Component: contrib.admin Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

E.g.
TEMPLATE_STRING_IF_INVALID = 'ANYTHING'

http://localhost/admin/auth/user/add/ site has then "ANYTHING" in top of the page and this kind of HTML: <form action="ANYTHING" method="post" id="user_form">

When TEMPLATE_STRING_IF_INVALID = 'ANYTHING' is commented, adding user works.

Change History (1)

comment:1 by Luke Plant, 15 years ago

Resolution: invalid
Status: newclosed

The documentation clearly states that using this setting for anything other than template rendering debugging will cause breakage:

http://docs.djangoproject.com/en/dev/ref/templates/api/#invalid-template-variables

(and that section is linked from the section about TEMPLATE_STRING_IF_INVALID in the settings reference.

Note: See TracTickets for help on using tickets.
Back to Top