Traceback most recent call last File opt django lib python django core

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Traceback (most recent call last):
File "/opt/django/lib/python/django/core/handlers/base.py", line 86, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/opt/django/projects/oxyum/apps/lib/decorators.py", line 33, in wrapper
output = func(request, *args, **kw)
File "/opt/django/projects/oxyum/apps/openidconsumer/views.py", line 82, in signin
elif is_valid_next_url(get_address(request.META.get('HTTP_REFERER'), request)):
File "/opt/django/projects/oxyum/apps/openidconsumer/views.py", line 35, in get_address
out = path.split(request.get_host(), 1)[1]
IndexError: list index out of range
<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDict: {u'openid_url': [u'http:/ellenlaferney.pib.ir/184229/Summary+Of+Movie+Tribulations+Of+A+Country+Schoolmarm+%281898%29.html']}>,
COOKIES:{},
META:{'CONTENT_LENGTH': '142',
'CONTENT_TYPE': 'application/x-www-form-urlencoded',
'DOCUMENT_ROOT': '/html',
'DOCUMENT_URI': '/openid/',
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_ACCEPT': '*/*',
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
'HTTP_ACCEPT_LANGUAGE': 'en-us',
'HTTP_CONTENT_LENGTH': '142',
'HTTP_CONTENT_TYPE': 'application/x-www-form-urlencoded',
'HTTP_HOST': 'oxyum.ru',
'HTTP_REFERER': 'http:/e1blog.com/kendraschachterle/93790/Indian+Hill+Golf+Club.html',
'HTTP_USER_AGENT': 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; digit_may2002)',
'PATH_INFO': u'/openid/',
'QUERY_STRING': '',
'REMOTE_ADDR': '24.85.42.216',
'REMOTE_PORT': '3881',
'REQUEST_METHOD': 'POST',
'REQUEST_URI': '/openid/',
'SCRIPT_NAME': u'',
'SERVER_ADDR': '172.24.20.3',
'SERVER_NAME': 'oxyum.ru',
'SERVER_PORT': '80',
'SERVER_PROTOCOL': 'HTTP/1.0',
'SERVER_SOFTWARE': 'nginx/0.6.31',
'wsgi.errors': <flup.server.fcgi_base.TeeOutputStream object at 0x15535d0>,
'wsgi.input': <flup.server.fcgi_base.InputStream object at 0x1553750>,
'wsgi.multiprocess': True,
'wsgi.multithread': False,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)}>