| AttributeError | Python 2.3.5: /usr/bin/python Sat Jul 31 18:03:50 2010 |
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/.nigan/zezzer/zezz.nl/fcgi.py in run(self=<fcgi.Request object>) |
| 578 """Runs the handler, flushes the streams, and ends the request.""" |
| 579 try: |
| 580 protocolStatus, appStatus = self.server.handler(self) |
| 581 except: |
| 582 traceback.print_exc(file=self.stderr) |
| protocolStatus undefined, appStatus undefined, self = <fcgi.Request object>, self.server = <fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <fcgi.WSGIServer object>> |
| /home/.nigan/zezzer/zezz.nl/fcgi.py in handler(self=<fcgi.WSGIServer object>, req=<fcgi.Request object>) |
| 1264 try: |
| 1265 try: |
| 1266 result = self.application(environ, start_response) |
| 1267 try: |
| 1268 for data in result: |
| result = None, self = <fcgi.WSGIServer object>, self.application = <django.core.handlers.wsgi.WSGIHandler object>, environ = {'DH_USER': 'zezzer', 'DOCUMENT_ROOT': '/home/zezzer/zezz.nl', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;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', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'zezz.nl', ...}, start_response = <function start_response> |
| /usr/lib/python2.3/site-packages/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object>, environ={'DH_USER': 'zezzer', 'DOCUMENT_ROOT': '/home/zezzer/zezz.nl', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;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', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'zezz.nl', ...}, start_response=<function start_response>) |
| 239 response = http.HttpResponseBadRequest() |
| 240 else: |
| 241 response = self.get_response(request) |
| 242 |
| 243 # Apply response middleware |
| response undefined, self = <django.core.handlers.wsgi.WSGIHandler object>, self.get_response = <bound method WSGIHandler.get_response of <django.core.handlers.wsgi.WSGIHandler object>>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}> |
| /usr/lib/python2.3/site-packages/django/core/handlers/base.py in get_response(self=<django.core.handlers.wsgi.WSGIHandler object>, request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>) |
| 71 # Apply request middleware |
| 72 for middleware_method in self._request_middleware: |
| 73 response = middleware_method(request) |
| 74 if response: |
| 75 return response |
| response = None, middleware_method = <bound method SessionMiddleware.process_request ...ib.sessions.middleware.SessionMiddleware object>>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}> |
| /usr/lib/python2.3/site-packages/django/contrib/sessions/middleware.py in process_request(self=<django.contrib.sessions.middleware.SessionMiddleware object>, request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>) |
| 10 engine = import_module(settings.SESSION_ENGINE) |
| 11 session_key = request.COOKIES.get(settings.SESSION_COOKIE_NAME, None) |
| 12 request.session = engine.SessionStore(session_key) |
| 13 |
| 14 def process_response(self, request, response): |
| request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, request.session undefined, engine = <module 'django.contrib.sessions.backends.db' fr...ackages/django/contrib/sessions/backends/db.pyc'>, engine.SessionStore undefined, session_key = None |
AttributeError: 'module' object has no attribute 'SessionStore'
args =
("'module' object has no attribute 'SessionStore'",)