Hi All,
I am using django.contrib.views.login for the login view and /
registration/login.html as a login template.
The template code is as below.
<html>
<head>
<title>Django Bookmarks - User Login</title>
<body>
<h1>User Login</h1>
{% if form.has_errors %}
<p>Your username and password didn't match.
Please try again.</p>
{% endif %}
<form method="post" action=".">
<p><label for="id_username">Username:</label>
{{ form.username }}</p>
<p><label for="id_password">Password:</label>
{{ form.password }}</p>
<input type="hidden" name="next" value="/" />
<input type="submit" value="login" />
</form>
</body>
</html>
But when I enter wrong username or password it redirects me to the
login template, without showing any errors. I want the error message
to be displayed to the user.
{% if form.has_errors %}
thanks
ashy
--
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-developers?hl=en.