| IndexError | Python 2.4.3: /home/lexical/django/virtual_python/bin/python Wed Mar 10 19:31:56 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/lexical/django/virtual_python/lib/python2.4/site-packages/flup-0.5-py2.4.egg/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object>) |
| 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) |
| protocolStatus undefined, appStatus undefined, self = <flup.server.fcgi_base.Request object>, self.server = <flup.server.fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi.WSGIServer object>> |
| /home/lexical/django/virtual_python/lib/python2.4/site-packages/flup-0.5-py2.4.egg/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object>, req=<flup.server.fcgi_base.Request object>) |
| 1110 try: |
| 1111 try: |
| 1112 result = self.application(environ, start_response) |
| 1113 try: |
| 1114 for data in result: |
| result = None, self = <flup.server.fcgi.WSGIServer object>, self.application = <django.core.handlers.wsgi.WSGIHandler object>, environ = {'DOCUMENT_ROOT': '/home/lexical/public_html', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/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', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'lexical-ambiguity.com', 'HTTP_PRAGMA': 'no-cache', ...}, start_response = <function start_response> |
| /home/lexical/django/virtual_python/lib/python2.4/site-packages/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object>, environ={'DOCUMENT_ROOT': '/home/lexical/public_html', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/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', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'lexical-ambiguity.com', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<function start_response>) |
| 146 try: |
| 147 request = WSGIRequest(environ) |
| 148 response = self.get_response(request.path, request) |
| 149 |
| 150 # 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:<MultiValueDict: {}>, POST:<Mul...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, request.path = '' |
| /home/lexical/django/virtual_python/lib/python2.4/site-packages/django/core/handlers/base.py in get_response(self=<django.core.handlers.wsgi.WSGIHandler object>, path='', request=<WSGIRequest GET:<MultiValueDict: {}>, POST:<Mul...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>) |
| 57 # Apply request middleware |
| 58 for middleware_method in self._request_middleware: |
| 59 response = middleware_method(request) |
| 60 if response: |
| 61 return response |
| response undefined, middleware_method = <bound method CommonMiddleware.process_request o...jango.middleware.common.CommonMiddleware object>>, request = <WSGIRequest GET:<MultiValueDict: {}>, POST:<Mul...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}> |
| /home/lexical/django/virtual_python/lib/python2.4/site-packages/django/middleware/common.py in process_request(self=<django.middleware.common.CommonMiddleware object>, request=<WSGIRequest GET:<MultiValueDict: {}>, POST:<Mul...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>) |
| 38 # Append a slash if append_slash is set and the URL doesn't have a |
| 39 # trailing slash or a file extension. |
| 40 if settings.APPEND_SLASH and (old_url[1][-1] != '/') and ('.' not in old_url[1].split('/')[-1]): |
| 41 new_url[1] = new_url[1] + '/' |
| 42 if settings.DEBUG and request.method == 'POST': |
| global settings = <django.conf.LazySettings object>, settings.APPEND_SLASH = True, old_url = ['lexical-ambiguity.com', ''], ].split undefined |
IndexError: string index out of range
args =
('string index out of range',)