Re: 'WSGIRequest' object has no attribute 'user'

2018-01-14 Thread harsh sharma
thanks Etienne , The problem is solved On Monday, December 25, 2017 at 10:25:34 AM UTC+5:30, harsh sharma wrote: > > i am getting this error when ever i try to run localhost/admin > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: 'WSGIRequest' object has no attribute 'user'

2017-12-25 Thread Etienne Robillard
Please show us any relevant traceback message, and include your Python and Django versions as well. cheers, Etienne Le 2017-12-24 à 23:55, harsh sharma a écrit : i am getting  this error  when ever i try to run localhost/admin -- You received this message because you are subscribed to the

'WSGIRequest' object has no attribute 'user'

2017-12-24 Thread harsh sharma
i am getting this error when ever i try to run localhost/admin -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To

Re: MIDDLEWARE vs MIDDLEWARE_CLASSES: 'WSGIRequest' object has no attribute 'user'

2016-08-18 Thread Tim Graham
Are you running Django 1.10? It looks like your MIDDLEWARE setting is ignored which suggests you might be using an older version. On Wednesday, August 17, 2016 at 6:43:14 PM UTC-4, Andrew Emory wrote: > > My settings.py file has the default MIDDLEWARE settings generated by > django-admin startap

MIDDLEWARE vs MIDDLEWARE_CLASSES: 'WSGIRequest' object has no attribute 'user'

2016-08-17 Thread Andrew Emory
My settings.py file has the default MIDDLEWARE settings generated by django-admin startapp: MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.

What happened to my admin? AttributeError: 'WSGIRequest' object has no attribute 'user'

2016-08-14 Thread Andrew Emory
Django 1.9. Everything seems to be set up properly. I was having some issues with my templates but got them working. I didn't touch any admin or even any login stuff. Though my template does have a {% csrf_token %}. I can't imagine how this happened. >From Googling it seems like it was a

AttributeError: 'WSGIRequest' object has no attribute 'user'

2009-03-05 Thread sdhays
packages/django/contrib/auth/ decorators.py", line 66, in __call__ if self.test_func(request.user): AttributeError: 'WSGIRequest' object has no attribute 'user' Any ideas why this would occur? It doesn't happen all the time. We'

Re: 'WSGIRequest' object has no attribute 'user'

2008-01-04 Thread Chris Haynes
> > > On Dec 29 2007, 11:03 am, Alex Koshelev <[EMAIL PROTECTED]> wrote: > > > Is there 'django.contrib.auth.middleware.AuthenticationMiddleware' in > > > your MIDDLEWARE_CLASSES ? > > > No. Uncommenting > >'django.middleware.common.CommonMiddleware', > >'django.contrib.sessions.mi

Re: 'WSGIRequest' object has no attribute 'user'

2008-01-03 Thread Karen Tracey
On Jan 3, 2008 10:32 AM, Chris Haynes <[EMAIL PROTECTED]> wrote: > > On Dec 29 2007, 11:03 am, Alex Koshelev <[EMAIL PROTECTED]> wrote: > > Is there 'django.contrib.auth.middleware.AuthenticationMiddleware' in > > your MIDDLEWARE_CLASSES ? > > No. Uncommenting >'django.middleware.common.Co

Re: 'WSGIRequest' object has no attribute 'user'

2008-01-03 Thread Chris Haynes
On Dec 29 2007, 11:03 am, Alex Koshelev <[EMAIL PROTECTED]> wrote: > Is there 'django.contrib.auth.middleware.AuthenticationMiddleware' in > your MIDDLEWARE_CLASSES ? No. Uncommenting 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddlewar

Re: 'WSGIRequest' object has no attribute 'user'

2007-12-29 Thread hedronist
> After that I restart the server and get AttributeError at /admin/ > 'WSGIRequest' object has no attribute 'user', with traceback > athttp://dpaste.com/29308/. Don't see the admin login screen. Huh. This smells vaguely like a problem we ran into w

Re: 'WSGIRequest' object has no attribute 'user'

2007-12-29 Thread Alex Koshelev
t; > After that I restart the server and get AttributeError at /admin/ > 'WSGIRequest' object has no attribute 'user', with traceback > athttp://dpaste.com/29308/. Don't see the admin login screen. > > I'm using > urlpatterns = patterns( > &#x

'WSGIRequest' object has no attribute 'user'

2007-12-29 Thread Chris Haynes
Thanks a lot, syncdb now works with the admin stuff, and I entered the superuser account stuff when requested. After that I restart the server and get AttributeError at /admin/ 'WSGIRequest' object has no attribute 'user', with traceback at http://dpaste.com/29308/. Don&#

Re: AttributeError: 'WSGIRequest' object has no attribute 'user'

2007-01-15 Thread Sam
I had this error because i'm not using the auth module. If that's you case, comment it out in your settings.py file: TEMPLATE_CONTEXT_PROCESSORS = ( "django.core.context_processors.debug", "django.core.context_processors.i18n", # "django.core.context_processors.auth", ) On Jan 5, 5

Re: AttributeError: 'WSGIRequest' object has no attribute 'user'

2007-01-04 Thread Brian Beck
It would seem that something is happening between the authentication middleware setting request.__class__.user and the context processor reading it. Couple things to try if you're in a debugging mood: After line 11 in django/contrib/admin/middleware.py: request.__class__.user = LazyUser() +

Re: AttributeError: 'WSGIRequest' object has no attribute 'user'

2007-01-04 Thread Jeremy Dunck
On 10/18/06, Tyson Tate <[EMAIL PROTECTED]> wrote: ... I've got the following in settings.py: TEMPLATE_CONTEXT_PROCESSORS = ( "django.core.context_processors.debug", "django.core.context_processors.i18n", "django.core.context_processors.auth", ) MIDDLEWARE_CLASSES = ( 'djan

AttributeError: 'WSGIRequest' object has no attribute 'user'

2006-10-18 Thread Tyson Tate
context_processors) File "/home/ohgoditb/django_src/django/template/context.py", line 97, in __init__ self.update(processor(request)) File "/home/ohgoditb/django_src/django/core/ context_processors.py", line 17, in auth return { AttributeError: 'WSGIReques

Re: 'WSGIRequest' object has no attribute 'user'

2006-08-02 Thread [EMAIL PROTECTED]
Does your template context processor contain: django.core.context_processors.auth? Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googl

'WSGIRequest' object has no attribute 'user'

2006-08-02 Thread Tyson Tate
ntext(request)) File "/home/ohgoditb/django_src/django/template/context.py", line 97, in __init__ self.update(processor(request)) File "/opt/local/lib/python2.4/site-packages/django/core/ context_processors.py", line 17, in auth AttributeError: 'WSGIRequest'