In my login form, I have this code:
-- {% if login_form.non_field_errors %}
<p class="text-danger">{{ login_form.non_field_errors.as_text|cut:"* "|escape }}</p>
{% endif %}If a user enters the wrong username/password combo, the error reads like this: 'Please enter a correct username and password. Note that both fields may be case-sensitive." I'd like to change this message and other error messages. How do I do this?
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0bcec941-56f1-4442-9436-2e7cb9411454%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment