Opened 13 years ago

Closed 13 years ago

#15228 closed (duplicate)

TEMPLATE_STRING_IF_INVALID breaks admin

Reported by: CarlFK Owned by: nobody
Component: contrib.admin Version: 1.3-beta
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

stock django user auth, trying to change password = error.

http://localhost:8080/admin/auth/user/1/
"Use '[algo]$[salt]$[hexdigest]' or use the _change password form_" click
abc<tab>abc click done:

RuntimeError at /admin/auth/user/1/password/template_error

You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to localhost:8080/admin/auth/user/1/password/template_error/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.

Change History (2)

comment:1 by CarlFK, 13 years ago

Component: Authenticationdjango.contrib.admin
Summary: admin/.../password/template_errorTEMPLATE_STRING_IF_INVALID breaks admin

in my settings.py:

TEMPLATE_STRING_IF_INVALID = 'template_error'

comment:2 by Matt McClanahan, 13 years ago

Resolution: duplicate
Status: newclosed

Yes, it does break the admin. This is documented behavior, but #3579 tracks resolving the dependency.

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