A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
| /home/qwertykitchen/my_python_libs/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object at 0x403d048c>, environ={'DOCUMENT_ROOT': '/home/qwertykitchen/qwertykitchen.com', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'Accept: application/xhtml+xml,text/html;q=0.9,text/plain;', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.qwertykitchen.com', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<function start_response at 0x40c9cdbc>) |
207 # Apply response middleware
|
208 for middleware_method in self._response_middleware:
|
209 response = middleware_method(request, response)
|
210 response = self.apply_response_fixes(request, response)
|
211 finally:
|
| response = <django.http.HttpResponsePermanentRedirect object at 0x40e17f6c>, middleware_method = <bound method ProfileMiddleware.process_response...ddleware.ProfileMiddleware object at 0x405bf3cc>>, request = <WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDic...gi.url_scheme': 'http',
'wsgi.version': (1, 0)}> |
| /home/qwertykitchen/stages/live/qwertykitchen/django_projects/recipe/middleware.py in process_response(self=<recipe.middleware.ProfileMiddleware object at 0x405bf3cc>, request=<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDic...gi.url_scheme': 'http',
'wsgi.version': (1, 0)}>, response=<django.http.HttpResponsePermanentRedirect object at 0x40e17f6c>) |
95
|
96 def process_response(self, request, response):
|
97 if (settings.DEBUG or request.user.is_superuser) and request.has_key('prof'):
|
98 self.prof.close()
|
99
|
| global settings = <django.conf.LazySettings object at 0x4048f48c>, settings.DEBUG = False, request = <WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDic...gi.url_scheme': 'http',
'wsgi.version': (1, 0)}>, request.user undefined, request.has_key = <bound method WSGIRequest.has_key of <WSGIReques...i.url_scheme': 'http',
'wsgi.version': (1, 0)}>> |
| /home/qwertykitchen/my_python_libs/django/contrib/auth/middleware.py in __get__(self=<django.contrib.auth.middleware.LazyUser object at 0x40e054cc>, request=<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDic...gi.url_scheme': 'http',
'wsgi.version': (1, 0)}>, obj_type=<class 'django.core.handlers.wsgi.WSGIRequest'>) |
3 if not hasattr(request, '_cached_user'):
|
4 from django.contrib.auth import get_user
|
5 request._cached_user = get_user(request)
|
6 return request._cached_user
|
7
|
| request = <WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDic...gi.url_scheme': 'http',
'wsgi.version': (1, 0)}>, request._cached_user undefined, get_user = <function get_user at 0x4051abfc> |
| /home/qwertykitchen/my_python_libs/django/contrib/auth/__init__.py in get_user(request=<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDic...gi.url_scheme': 'http',
'wsgi.version': (1, 0)}>) |
78 from django.contrib.auth.models import AnonymousUser
|
79 try:
|
80 user_id = request.session[SESSION_KEY]
|
81 backend_path = request.session[BACKEND_SESSION_KEY]
|
82 backend = load_backend(backend_path)
|
| user_id undefined, request = <WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDic...gi.url_scheme': 'http',
'wsgi.version': (1, 0)}>, request.session undefined, global SESSION_KEY = '_auth_user_id' |