<type 'exceptions.AttributeError'>
Python 2.5.2: /home/qwertykitchen/opt/bin/python
Thu Jan 8 05:39:01 2009

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/.furbag/qwertykitchen/qwertykitchen.com/build/bdist.linux-i686/egg/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object at 0x40b6440c>)
  556         """Runs the handler, flushes the streams, and ends the request."""
  557         try:
  558             protocolStatus, appStatus = self.server.handler(self)
  559         except:
  560             traceback.print_exc(file=self.stderr)
 /home/.furbag/qwertykitchen/qwertykitchen.com/build/bdist.linux-i686/egg/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object at 0x4047b04c>, req=<flup.server.fcgi_base.Request object at 0x40b6440c>)
 1114         try:
 1115             try:
 1116                 result = self.application(environ, start_response)
 1117                 try:
 1118                     for data in result:
 /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 0x409a7a3c>)
  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 0x40c4ce2c>, middleware_method = <bound method ProfileMiddleware.process_response...ddleware.ProfileMiddleware object at 0x405be0ec>>, 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 0x405be0ec>, request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, response=<django.http.HttpResponsePermanentRedirect object at 0x40c4ce2c>)
   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 0x4048f18c>, 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 0x40cbe8cc>, 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 0x4051d994>
 /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'

<type 'exceptions.AttributeError'>: 'WSGIRequest' object has no attribute 'session'
      args = ("'WSGIRequest' object has no attribute 'session'",)
      message = "'WSGIRequest' object has no attribute 'session'"