Ticket #3185: login_url.diff
File login_url.diff, 597 bytes (added by , 18 years ago) |
---|
-
django/contrib/auth/__init__.py
1 1 from django.core.exceptions import ImproperlyConfigured 2 2 3 from django.conf import settings 4 3 5 SESSION_KEY = '_auth_user_id' 4 6 BACKEND_SESSION_KEY = '_auth_user_backend' 5 LOGIN_URL = '/accounts/login/' 7 8 try: 9 LOGIN_URL = settings.LOGIN_URL 10 except AttributeError: 11 LOGIN_URL = '/accounts/login/' 12 6 13 REDIRECT_FIELD_NAME = 'next' 7 14 8 15 def load_backend(path):