I've been running the latest SVN of Django on my production server
under Apache and FCGI. Occasionally, I've been getting error e-mails
like so:
----------
Traceback (most recent call last):
File "/home/ohgoditb/django_src/django/core/handlers/base.py",
line 74, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/home/ohgoditb/django_src/django/views/generic/simple.py",
line 10, in direct_to_template
return render_to_response(template, {'params' : kwargs},
context_instance=RequestContext(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' object has no attribute 'user'
----------
In the variable dump <http://code.bulix.org/i1ihc8-11799> I've
noticed the following line:
'HTTP_USER_AGENT': 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
5.1; Badass scanned your page!)',
Does anyone have any ideas what, exactly, that is and how I can
prevent it from sending me error e-mails? (Of course, I'd love to
just block anyone with a "MSIE" in their user-agent string, but I
guess that's not going to actually solve my problem :) Also, Looking
at some old tickets, it looks like people had issues with this using
user authentication on their site and fixed it by having
"'django.contrib.auth.middleware.AuthenticationMiddleware'," in their
MIDDLEWARE_CLASSES setting, but that isn't working for me.
Thanks,
Tyson
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---