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 %} --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---