I am having the following error sent to my email from a live site. I
haven't been able to reproduce the error myself, but was hoping
someone could point me in the right direction as to how to solve this.
First of all, is it something in my code, or in Django? The last line
of the traceback says Django, but I think it's probably something I'm
doing.
Any ideas?
Thanks,
Grant
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/django/core/handlers/
base.py", line 86, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.5/site-packages/django/contrib/auth/
decorators.py", line 67, in __call__
return self.view_func(request, *args, **kwargs)
File "/usr/local/src/wxcoder/observations/views.py", line 160, in
enter
if form.is_valid():
File "/usr/lib/python2.5/site-packages/django/forms/forms.py", line
120, in is_valid
return self.is_bound and not bool(self.errors)
File "/usr/lib/python2.5/site-packages/django/forms/forms.py", line
111, in _get_errors
self.full_clean()
File "/usr/lib/python2.5/site-packages/django/forms/forms.py", line
241, in full_clean
self.cleaned_data = self.clean()
File "/usr/local/src/wxcoder/observations/forms.py", line 104, in
clean
self.validate()
File "/usr/local/src/wxcoder/observations/forms.py", line 462, in
validate
]: validator(self.cleaned_data)
File "/usr/local/src/wxcoder/observations/forms.py", line 257, in
ValidateGrossLimit
e = Element.objects.get(elementID=e_id)
File "/usr/lib/python2.5/site-packages/django/db/models/manager.py",
line 93, in get
return self.get_query_set().get(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/django/db/models/query.py",
line 309, in get
% self.model._meta.object_name)
TypeError: 'exceptions.IndexError' object is not callable
<ModPythonRequest
path:/wxcoder/observations/enter/,
GET:<QueryDict: {}>,
POST:<QueryDict: {u'date_hour': [u'10'], u'comment': [u'rain'], u'PP':
[u'.04'], u'TX': [u'32'], u'date_month': [u'12'], u'station_id':
[u'6933'], u'TN': [u'30'], u'PPO_prev': [u''], u'SD': [u'13'],
u'date_minute': [u'0'], u'submit': [u'Submit'], u'date_year':
[u'2008'], u'date_day': [u'7'], u'type': [u'daily'], u'SF': [u'0'],
u'TA': [u'32']}>,
COOKIES:{'__utma':
'145837938.4275713312103283000.1230773473.1230773473.1230773473.1',
'__utmb': '145837938.47.10.1230773473',
'__utmc': '145837938',
'__utmz': '145837938.1230773473.1.1.utmcsr=(direct)|utmccn=(direct)|
utmcmd=(none)',
'sessionid': '2678e9af381ca6ae35cb0a020b6818fb',
'username': 'eklutna.waterplant'},
META:{'AUTH_TYPE': None,
'CONTENT_LENGTH': 0L,
'CONTENT_TYPE': None,
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_ACCEPT': 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, application/xaml+xml, application/
vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-
application, application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, */*',
'HTTP_ACCEPT_LANGUAGE': 'en-us',
'HTTP_CONNECTION': 'Keep-Alive',
'HTTP_CONTENT_LENGTH': '166',
'HTTP_CONTENT_TYPE': 'application/x-www-form-urlencoded',
'HTTP_COOKIE': 'sessionid=2678e9af381ca6ae35cb0a020b6818fb;
__utma=145837938.4275713312103283000.1230773473.1230773473.1230773473.1;
__utmb=145837938.47.10.1230773473; __utmc=145837938;
__utmz=145837938.1230773473.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=
(none); username=eklutna.waterplant',
'HTTP_HOST': 'wxcoder.org',
'HTTP_PRAGMA': 'no-cache',
'HTTP_REFERER': 'http://wxcoder.org/wxcoder/observations/enter/?
date=20081207',
'HTTP_UA_CPU': 'x86',
'HTTP_USER_AGENT': 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT
5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
3.0.04506.30; .NET CLR 3.0.04506.648)',
'HTTP_VIA': '1.0 AWWUPROX3',
'PATH_INFO': u'/wxcoder/observations/enter/',
'PATH_TRANSLATED': None,
'QUERY_STRING': None,
'REMOTE_ADDR': '209.112.193.38',
'REMOTE_HOST': None,
'REMOTE_IDENT': None,
'REMOTE_USER': None,
'REQUEST_METHOD': 'POST',
'SCRIPT_NAME': '',
'SERVER_NAME': 'wxcoder.org',
'SERVER_PORT': 0,
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SOFTWARE': 'mod_python'}>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---