As per the error, i have changed the position of the classes in my
settings.py, but still it is giving error.

settings.py file

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.auth.middleware.RemoteUserAuthMiddleware',
    'django.middleware.doc.XViewMiddleware',
)


On Jul 9, 5:53 pm, Venkatraman S <venka...@gmail.com> wrote:
> Read the error again please. The errors are *printed* for a reason - reason
> being for you to read.
> And sometimes, they also mention how to fix it .
>
>
>
>
>
>
>
> On Sat, Jul 9, 2011 at 5:59 PM, pankaj <kamalp.sha...@gmail.com> wrote:
> > Hi,
>
> > Can someone please help to fix this issue? Please let me know if you
> > need any more info.
>
> > Traceback (most recent call last):
>
> >  File "/ot/w/u/django-s/django/core/handlers/base.py", line 80, in
> > get_response
> >    response = middleware_method(request)
>
> >  File "/ot/w/u/django-s/django/contrib/auth/middleware.py", line 89,
> > in process_request
> >    assert hasattr(request, 'user'), error
>
> > AssertionError: The Django RemoteUserAuth middleware requires
> > authentication middleware to be installed. Edit your
> > MIDDLEWARE_CLASSES setting to insert
> > 'django.contrib.auth.middleware.AuthenticationMiddleware' *before* the
> > RemoteUserMiddleware class.
>
> > Thanks,
>
> > --
> > 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@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.

-- 
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@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.

Reply via email to