| IndexError | Python 2.4.1: /usr/local/bin/python Sat Jul 31 19:59:00 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.
| /users/home/tcgadmin/local/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object>) |
| 558 """Runs the handler, flushes the streams, and ends the request.""" |
| 559 try: |
| 560 protocolStatus, appStatus = self.server.handler(self) |
| 561 except: |
| 562 traceback.print_exc(file=self.stderr) |
| protocolStatus undefined, appStatus undefined, self = <flup.server.fcgi_base.Request object>, self.server = <flup.server.fcgi_fork.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi_fork.WSGIServer object>> |
| /users/home/tcgadmin/local/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi_fork.WSGIServer object>, req=<flup.server.fcgi_base.Request object>) |
| 1096 self._appLock.acquire() |
| 1097 try: |
| 1098 result = self.application(environ, start_response) |
| 1099 try: |
| 1100 for data in result: |
| result = None, self = <flup.server.fcgi_fork.WSGIServer object>, self.application = <django.core.handlers.wsgi.WSGIHandler object>, environ = {'DOCUMENT_ROOT': '/users/home/tcgadmin/public_html/', '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_HOST': 'www.theclintongroup.net', 'HTTP_MAX_FORWARDS': '10', 'HTTP_PRAGMA': 'no-cache', ...}, start_response = <function start_response> |
| /home/tcgadmin/local/django_src/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object>, environ={'DOCUMENT_ROOT': '/users/home/tcgadmin/public_html/', '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_HOST': 'www.theclintongroup.net', 'HTTP_MAX_FORWARDS': '10', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<function start_response>) |
| 187 try: |
| 188 request = WSGIRequest(environ) |
| 189 response = self.get_response(request) |
| 190 |
| 191 # 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)}> |
| /home/tcgadmin/local/django_src/django/core/handlers/base.py in get_response(self=<django.core.handlers.wsgi.WSGIHandler object>, 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/tcgadmin/local/django_src/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)}>) |
| 39 # Append a slash if append_slash is set and the URL doesn't have a |
| 40 # trailing slash or a file extension. |
| 41 if settings.APPEND_SLASH and (old_url[1][-1] != '/') and ('.' not in old_url[1].split('/')[-1]): |
| 42 new_url[1] = new_url[1] + '/' |
| 43 if settings.DEBUG and request.method == 'POST': |
| global settings = <django.conf.LazySettings object>, settings.APPEND_SLASH = True, old_url = ['www.theclintongroup.net', ''], ].split undefined |
IndexError: string index out of range
args =
('string index out of range',)