Index: django/contrib/auth/__init__.py
===================================================================
--- django/contrib/auth/__init__.py	(revision 4235)
+++ django/contrib/auth/__init__.py	(working copy)
@@ -1,8 +1,15 @@
 from django.core.exceptions import ImproperlyConfigured
 
+from django.conf import settings
+
 SESSION_KEY = '_auth_user_id'
 BACKEND_SESSION_KEY = '_auth_user_backend'
-LOGIN_URL = '/accounts/login/'
+
+try:
+    LOGIN_URL = settings.LOGIN_URL
+except AttributeError:
+    LOGIN_URL = '/accounts/login/'
+
 REDIRECT_FIELD_NAME = 'next'
 
 def load_backend(path):
