Hi, Ive been running into a problem lately (not sure when it started) where I receive an AttributeError when logging into the admin site. The circumstances seem to be that I start the application, go to the admin site (and log in successfully), navigate around the rest of the application (which does not require authentication). Then at some point the session or authentication times out and I get the AttributeError whenever I try to go back to the admin site. Ive tried googling with out success. Any help would be appreciated. Specific details are below: Environment: Request Method: GET Request URL: http://localhost:8000/admin/ Django Version: 1.2.1 Python Version: 2.6.5 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'optiver.public', 'optiver.xmlrpc'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware') Traceback: File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/ base.py" in get_response 100. response = callback(request, *callback_args, **callback_kwargs) File "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/ sites.py" in wrapper 207. return self.admin_view(view, cacheable)(*args, **kwargs) File "/usr/local/lib/python2.6/dist-packages/django/utils/ decorators.py" in _wrapped_view 76. response = view_func(request, *args, **kwargs) File "/usr/local/lib/python2.6/dist-packages/django/views/decorators/ cache.py" in _wrapped_view_func 69. response = view_func(request, *args, **kwargs) File "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/ sites.py" in inner 188. if not self.has_permission(request): File "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/ sites.py" in has_permission 141. return request.user.is_active and request.user.is_staff File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/ middleware.py" in __get__ 9. request._cached_user = get_user(request) File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/ __init__.py" in get_user 99. backend = load_backend(backend_path) File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/ __init__.py" in load_backend 11. i = path.rfind('.') Exception Type: AttributeError at /admin/ Exception Value: 'bool' object has no attribute 'rfind' The value of path at the end is the boolean True Cheers, -Daniel
-- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.