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
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
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
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
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.
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
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'
>
> > 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
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
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
> 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
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(
>
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
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
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()
+
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
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
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
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'
19 matches
Mail list logo