AttributeError at / 'WSGIRequest' object has no attribute 'user' Request Method: GET Request URL: http://www.xteve.com/ Exception Type: AttributeError Exception Value: 'WSGIRequest' object has no attribute 'user' Exception Location: /usr/local/lib/python2.4/site-packages/django/core/context_processors.py in auth, line 17 Traceback (innermost last) Switch back to interactive view * /usr/local/lib/python2.4/site-packages/django/core/handlers/base.py in get_response 67. # Apply view middleware 68. for middleware_method in self._view_middleware: 69. response = middleware_method(request, callback, callback_args, callback_kwargs) 70. if response: 71. return response 72. 73. try: 74. response = callback(request, *callback_args, **callback_kwargs) ... 75. except Exception, e: 76. # If the view raised an exception, run it through exception 77. # middleware, and if the exception middleware returns a 78. # response, use that. Otherwise, reraise the exception. 79. for middleware_method in self._exception_middleware: 80. response = middleware_method(request, e) ▶ Local vars Variable Value callback callback_args () callback_kwargs {} e exceptions mail_admins middleware_method > path '/' request , POST:, COOKIES:{}, META:{'DOCUMENT_ROOT': '/www/default/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-gb,en;q=0.5', 'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_HOST': 'www.xteve.com', 'HTTP_KEEP_ALIVE': '300', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5', 'PATH_INFO': '/', 'PATH_TRANSLATED': '/www/default//', 'QUERY_STRING': '', 'REDIRECT_STATUS': '200', 'REDIRECT_URI': '/xteve.fcgi/', 'REMOTE_ADDR': '84.43.40.171', 'REMOTE_PORT': '1204', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/www/default/xteve.fcgi', 'SCRIPT_NAME': '/xteve.fcgi', 'SERVER_ADDR': '207.210.111.142', 'SERVER_NAME': 'www.xteve.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'lighttpd/1.4.11', 'wsgi.errors': , 'wsgi.input': , 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> resolver response None self settings urlresolvers * /www/xteve/../xteve/weblog/views.py in articlelist 63. articles = Article.objects.all().order_by('-date') 64. 65. replaces = { 66. "linklist": linklist, 67. "articles" : articles, 68. "request": request 69. } 70. return rtr("weblog/articlelist.html", replaces, request) ... 71. 72. 73. def comment(request, year, month, day, ident): 74. try: 75. a = Article.objects.get(ident=ident, date__year=year, date__month=month, date__day=day) 76. except Article.DoesNotExist: ▶ Local vars Variable Value articles Error in formatting:(1045, "Access denied for user 'steve'@'localhost' (using password: YES)") cat False day False linklist [] month False replaces Error in formatting:(1045, "Access denied for user 'steve'@'localhost' (using password: YES)") request , POST:, COOKIES:{}, META:{'DOCUMENT_ROOT': '/www/default/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-gb,en;q=0.5', 'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_HOST': 'www.xteve.com', 'HTTP_KEEP_ALIVE': '300', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5', 'PATH_INFO': '/', 'PATH_TRANSLATED': '/www/default//', 'QUERY_STRING': '', 'REDIRECT_STATUS': '200', 'REDIRECT_URI': '/xteve.fcgi/', 'REMOTE_ADDR': '84.43.40.171', 'REMOTE_PORT': '1204', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/www/default/xteve.fcgi', 'SCRIPT_NAME': '/xteve.fcgi', 'SERVER_ADDR': '207.210.111.142', 'SERVER_NAME': 'www.xteve.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'lighttpd/1.4.11', 'wsgi.errors': , 'wsgi.input': , 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> year False * /usr/local/lib/python2.4/site-packages/django/template/context.py in __init__ 90. def __init__(self, request, dict=None, processors=None): 91. Context.__init__(self, dict) 92. if processors is None: 93. processors = () 94. else: 95. processors = tuple(processors) 96. for processor in get_standard_processors() + processors: 97. self.update(processor(request)) ... ▶ Local vars Variable Value dict Error in formatting:(1045, "Access denied for user 'steve'@'localhost' (using password: YES)") processor processors () request , POST:, COOKIES:{}, META:{'DOCUMENT_ROOT': '/www/default/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-gb,en;q=0.5', 'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_HOST': 'www.xteve.com', 'HTTP_KEEP_ALIVE': '300', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5', 'PATH_INFO': '/', 'PATH_TRANSLATED': '/www/default//', 'QUERY_STRING': '', 'REDIRECT_STATUS': '200', 'REDIRECT_URI': '/xteve.fcgi/', 'REMOTE_ADDR': '84.43.40.171', 'REMOTE_PORT': '1204', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/www/default/xteve.fcgi', 'SCRIPT_NAME': '/xteve.fcgi', 'SERVER_ADDR': '207.210.111.142', 'SERVER_NAME': 'www.xteve.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'lighttpd/1.4.11', 'wsgi.errors': , 'wsgi.input': , 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> self Error in formatting:(1045, "Access denied for user 'steve'@'localhost' (using password: YES)") * /usr/local/lib/python2.4/site-packages/django/core/context_processors.py in auth 10. from django.conf import settings 11. 12. def auth(request): 13. """ 14. Returns context variables required by apps that use Django's authentication 15. system. 16. """ 17. return { ... 18. 'user': request.user, 19. 'messages': request.user.get_and_delete_messages(), 20. 'perms': PermWrapper(request.user), 21. } 22. 23. def debug(request): ▶ Local vars Variable Value request , POST:, COOKIES:{}, META:{'DOCUMENT_ROOT': '/www/default/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-gb,en;q=0.5', 'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_HOST': 'www.xteve.com', 'HTTP_KEEP_ALIVE': '300', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5', 'PATH_INFO': '/', 'PATH_TRANSLATED': '/www/default//', 'QUERY_STRING': '', 'REDIRECT_STATUS': '200', 'REDIRECT_URI': '/xteve.fcgi/', 'REMOTE_ADDR': '84.43.40.171', 'REMOTE_PORT': '1204', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/', 'SCRIPT_FILENAME': '/www/default/xteve.fcgi', 'SCRIPT_NAME': '/xteve.fcgi', 'SERVER_ADDR': '207.210.111.142', 'SERVER_NAME': 'www.xteve.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'lighttpd/1.4.11', 'wsgi.errors': , 'wsgi.input': , 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response 74. response = callback(request, *callback_args, **callback_kwargs) File "/www/xteve/../xteve/weblog/views.py" in articlelist 70. return rtr("weblog/articlelist.html", replaces, request) File "/usr/local/lib/python2.4/site-packages/django/template/context.py" in __init__ 97. self.update(processor(request)) File "/usr/local/lib/python2.4/site-packages/django/core/context_processors.py" in auth 17. return { AttributeError at / 'WSGIRequest' object has no attribute 'user'