Skip to content

Instantly share code, notes, and snippets.

@mikelopez
Created July 18, 2013 20:16
Show Gist options
  • Save mikelopez/6032675 to your computer and use it in GitHub Desktop.
Save mikelopez/6032675 to your computer and use it in GitHub Desktop.
rfind exceptions
LOG :: 2013-07-18 15:15:37,533 ERROR Internal Server Error: /
---
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/decorators.py", line 19, in _wrapped_view
if test_func(request.user):
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/decorators.py", line 42, in <lambda>
lambda u: u.is_authenticated(),
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/utils/functional.py", line 184, in inner
self._setup()
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/utils/functional.py", line 248, in _setup
self._wrapped = self._setupfunc()
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/middleware.py", line 16, in <lambda>
request.user = SimpleLazyObject(lambda: get_user(request))
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/middleware.py", line 8, in get_user
request._cached_user = auth.get_user(request)
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/__init__.py", line 100, in get_user
backend = load_backend(backend_path)
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/__init__.py", line 11, in load_backend
i = path.rfind('.')
AttributeError: 'NoneType' object has no attribute 'rfind'
LOG :: 2013-07-18 15:15:37,533 ERROR Internal Server Error: /
---
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/decorators.py", line 19, in _wrapped_view
if test_func(request.user):
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/decorators.py", line 42, in <lambda>
lambda u: u.is_authenticated(),
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/utils/functional.py", line 184, in inner
self._setup()
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/utils/functional.py", line 248, in _setup
self._wrapped = self._setupfunc()
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/middleware.py", line 16, in <lambda>
request.user = SimpleLazyObject(lambda: get_user(request))
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/middleware.py", line 8, in get_user
request._cached_user = auth.get_user(request)
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/__init__.py", line 100, in get_user
backend = load_backend(backend_path)
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/__init__.py", line 11, in load_backend
i = path.rfind('.')
AttributeError: 'NoneType' object has no attribute 'rfind'
LOG :: 2013-07-18 15:15:37,533 ERROR Internal Server Error: /
---
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/decorators.py", line 19, in _wrapped_view
if test_func(request.user):
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/decorators.py", line 42, in <lambda>
lambda u: u.is_authenticated(),
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/utils/functional.py", line 184, in inner
self._setup()
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/utils/functional.py", line 248, in _setup
self._wrapped = self._setupfunc()
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/middleware.py", line 16, in <lambda>
request.user = SimpleLazyObject(lambda: get_user(request))
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/middleware.py", line 8, in get_user
request._cached_user = auth.get_user(request)
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/__init__.py", line 100, in get_user
backend = load_backend(backend_path)
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/__init__.py", line 11, in load_backend
i = path.rfind('.')
AttributeError: 'NoneType' object has no attribute 'rfind'
LOG :: 2013-07-18 15:15:37,533 ERROR Internal Server Error: /
---
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/decorators.py", line 19, in _wrapped_view
if test_func(request.user):
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/decorators.py", line 42, in <lambda>
lambda u: u.is_authenticated(),
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/utils/functional.py", line 184, in inner
self._setup()
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/utils/functional.py", line 248, in _setup
self._wrapped = self._setupfunc()
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/middleware.py", line 16, in <lambda>
request.user = SimpleLazyObject(lambda: get_user(request))
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/middleware.py", line 8, in get_user
request._cached_user = auth.get_user(request)
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/__init__.py", line 100, in get_user
backend = load_backend(backend_path)
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/__init__.py", line 11, in load_backend
i = path.rfind('.')
AttributeError: 'NoneType' object has no attribute 'rfind'
[18/Jul/2013 15:15:41] "GET / HTTP/1.1" 500 2922
RUNNING INDEX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment