I'm having some problems getting the "next" variable to work in the authentication module. After a user is logged in the page is redirected to /accounts/profile rather than being directed to the "next" variable.
I'm using the following code, anyone got any ideas what could be wrong? views.py @login_required(redirect_field_name='/login/') def index(request) urls.py # Login (r'^hosting/login/$', 'django.contrib.auth.views.login', {'template_name': 'hosting/login.html'}) settings.py LOGIN_URL = '/hosting/login/ hosting/login.html {% extends "base.html" %} {% block content %} {% if form.has_errors %} <p>Your username and password didn't match. Please try again.</p> {% endif %} <form method="post" action="."> <table> <tr><td><label for="id_username">Username:</label></ td><td>{{ form.username }}</td></tr> <tr><td><label for="id_password">Password:</label></ td><td>{{ form.password }}</td></tr> </table> <input type="submit" value="login" /> <input type="hidden" name="next" value="{{next}}" /> </form> {% 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---