-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Are you passing the "request" to it? That's the only thing I can think of that would mess it up, otherwise it looks good syntactically.
Luke luke.seelenbin...@gmail.com "I [may] disapprove of what you say, but I will defend to the death your right to say it." -- Voltaire When ideas fail wrote: > Hi, i am using this template to log people in, but it seems to always > return the login form no matter what i do, i can be logged in or > logged out and it will still say i need to log in. > > Does anyone know what might be happening. Any help would be > appreciated. > > Thanks > > {% extends "blogSite/index.html" %} > > {% block content %} > {% if not request.user.is_authenticated %} > {% if form.errors %} > <p class="error">Sorry, that's not a valid username or > password</p> > {% endif %} > <p> Please enter you user name and password below:</p> > <form action="" method="post"> > <label for="username">Username:</label> > <input type="text" name="username" value="" > id="username"><br><br> > <label for="password">Password:</label> > <input type="password" name="password" value="" > id="password"><br><br> > > <input type="submit" value="login" /> > <input type="hidden" name="next" > value="../login/" /> > </form> > {% else %} > <p> you are already logged in </p> > {% endif %} > > {% endblock %} > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkpzh8AACgkQXQrGVCncjPxJVACfQ68PD0uA2KGisU43jpzSLTbj p78AnjVqqu37G8JTPQHI4Lnuatn++JuJ =DCaK -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---