Django: How can I put an <a> hyperlink in a django validation error from a forms clean() method? I want to raise a validation error, and in the error text have an <a href=''></a> hyperlink that has a link that would help the user correct the error. This is a validation error I’m raising in a clean method of a form. Is there a way to mark the HTML for that validation error as safe to output as HTML?
Django: How can I put an <a> hyperlink in a django validation error from
Share
Call
mark_safeon the error message string when you’re raising theValidationError