Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError #592

Open
Praveensinghc0 opened this issue Jan 20, 2017 · 0 comments
Open

AttributeError #592

Praveensinghc0 opened this issue Jan 20, 2017 · 0 comments

Comments

@Praveensinghc0
Copy link

'WSGIRequest' object has no attribute 'user'

Request Method: GET
Request URL: http://127.0.0.1:8000/admin/

Django Version: 1.8
Python Version: 2.7.6
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
'django.contrib.flatpages',
'article']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware')

Traceback:
File "/home/10558/Documents/python/django-test/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
132. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/10558/Documents/python/django-test/local/lib/python2.7/site-packages/django/contrib/admin/sites.py" in wrapper
254. return self.admin_view(view, cacheable)(*args, **kwargs)
File "/home/10558/Documents/python/django-test/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
110. response = view_func(request, *args, **kwargs)
File "/home/10558/Documents/python/django-test/local/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
57. response = view_func(request, *args, **kwargs)
File "/home/10558/Documents/python/django-test/local/lib/python2.7/site-packages/django/contrib/admin/sites.py" in inner
222. if not self.has_permission(request):
File "/home/10558/Documents/python/django-test/local/lib/python2.7/site-packages/django/contrib/admin/sites.py" in has_permission
162. return request.user.is_active and request.user.is_staff

Exception Type: AttributeError at /admin/
Exception Value: 'WSGIRequest' object has no attribute 'user'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant