Using a value different from the default value for LOGIN_URL causes model tests to fail.
======================================================================
FAIL: Request a logout after logging in
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/jason/Projects/django-svn-trunk/tests/modeltests/test_client/models.py", line 315, in test_logout
self.assertRedirects(response, 'http://testserver/accounts/login/?next=/test_client/login_protected_view/')
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/test/testcases.py", line 94, in assertRedirects
"Response redirected to '%s', expected '%s'" % (url, expected_url))
AssertionError: Response redirected to 'http://dev:8000/login/?next=/test_client/login_protected_view/', expected 'http://testserver/accounts/login/?next=/test_client/login_protected_view/'
======================================================================
FAIL: Request a page that is protected with @login_required
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/jason/Projects/django-svn-trunk/tests/modeltests/test_client/models.py", line 245, in test_view_with_login
self.assertRedirects(response, 'http://testserver/accounts/login/?next=/test_client/login_protected_view/')
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/test/testcases.py", line 94, in assertRedirects
"Response redirected to '%s', expected '%s'" % (url, expected_url))
AssertionError: Response redirected to 'http://dev:8000/login/?next=/test_client/login_protected_view/', expected 'http://testserver/accounts/login/?next=/test_client/login_protected_view/'
======================================================================
FAIL: Request a page that is protected with @login_required(redirect_field_name='redirect_to')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/jason/Projects/django-svn-trunk/tests/modeltests/test_client/models.py", line 277, in test_view_with_login_and_custom_redirect
self.assertRedirects(response, 'http://testserver/accounts/login/?redirect_to=/test_client/login_protected_view_custom_redirect/')
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/test/testcases.py", line 94, in assertRedirects
"Response redirected to '%s', expected '%s'" % (url, expected_url))
AssertionError: Response redirected to 'http://dev:8000/login/?redirect_to=/test_client/login_protected_view_custom_redirect/', expected 'http://testserver/accounts/login/?redirect_to=/test_client/login_protected_view_custom_redirect/'
======================================================================
FAIL: Request a page that is protected with a @login_required method
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/jason/Projects/django-svn-trunk/tests/modeltests/test_client/models.py", line 261, in test_view_with_method_login
self.assertRedirects(response, 'http://testserver/accounts/login/?next=/test_client/login_protected_method_view/')
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/test/testcases.py", line 94, in assertRedirects
"Response redirected to '%s', expected '%s'" % (url, expected_url))
AssertionError: Response redirected to 'http://dev:8000/login/?next=/test_client/login_protected_method_view/', expected 'http://testserver/accounts/login/?next=/test_client/login_protected_method_view/'
======================================================================
FAIL: Request a page that is protected with a @permission_required method
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/jason/Projects/django-svn-trunk/tests/modeltests/test_client/models.py", line 339, in test_view_with_method_permissions
self.assertRedirects(response, 'http://testserver/accounts/login/?next=/test_client/permission_protected_method_view/')
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/test/testcases.py", line 94, in assertRedirects
"Response redirected to '%s', expected '%s'" % (url, expected_url))
AssertionError: Response redirected to 'http://dev:8000/login/?next=/test_client/permission_protected_method_view/', expected 'http://testserver/accounts/login/?next=/test_client/permission_protected_method_view/'
======================================================================
FAIL: Request a page that is protected with @permission_required
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/jason/Projects/django-svn-trunk/tests/modeltests/test_client/models.py", line 322, in test_view_with_permissions
self.assertRedirects(response, 'http://testserver/accounts/login/?next=/test_client/permission_protected_view/')
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/test/testcases.py", line 94, in assertRedirects
"Response redirected to '%s', expected '%s'" % (url, expected_url))
AssertionError: Response redirected to 'http://dev:8000/login/?next=/test_client/permission_protected_view/', expected 'http://testserver/accounts/login/?next=/test_client/permission_protected_view/'
}}}