I need to throw ValidationError containing anchor.
if not profile.activated():
raise ValidationError('Your profile is not activated. <a href="{% url resend_activation_key %}">Resend activation key</a>.')
What I need to modify to make this work?
Why do you want to use a template tag here? Template tags are for use in templates. If you want to find a reverse URL, use the
reversefunction.