Интересен Python? Заходите в Python сообщество PEP8.RU.
 
Python
13 May 2008
 
 
 
 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
48
49
50
51
52
53
54
55
56
57
58
Environment:
Request Method: POST
Request URL: http://maz.avtodin.ru/admin/pages/somepage/add/
Django Version: 0.97-pre-SVN-7523
Python Version: 2.5.2
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'corporate.pages',
'mptt',
'fckeditor.connector']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.doc.XViewMiddleware')
Traceback:
File "/home/casufi/Sites/current/corporate/django/core/handlers/base.py" in get_response
82. response = callback(request, *callback_args, **callback_kwargs)
File "/home/casufi/Sites/current/corporate/django/contrib/admin/views/decorators.py" in _checklogin
62. return view_func(request, *args, **kwargs)
File "/home/casufi/Sites/current/corporate/django/views/decorators/cache.py" in _wrapped_view_func
44. response = view_func(request, *args, **kwargs)
File "/home/casufi/Sites/current/corporate/django/contrib/admin/views/main.py" in add_stage
260. errors = manipulator.get_validation_errors(new_data)
File "/home/casufi/Sites/current/corporate/django/oldforms/__init__.py" in get_validation_errors
62. errors.update(field.get_validation_errors(new_data))
File "/home/casufi/Sites/current/corporate/django/oldforms/__init__.py" in get_validation_errors
379. self.run_validator(new_data, validator)
File "/home/casufi/Sites/current/corporate/django/oldforms/__init__.py" in run_validator
369. validator(new_data.get(self.field_name, ''), new_data)
File "/home/casufi/Sites/current/corporate/django/utils/functional.py" in _curried
55. return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
File "/home/casufi/Sites/current/corporate/django/db/models/manipulators.py" in manipulator_validator_unique_together
302. old_obj = self.manager.get(**kwargs)
File "/home/casufi/Sites/current/corporate/django/db/models/manager.py" in get
82. return self.get_query_set().get(*args, **kwargs)
File "/home/casufi/Sites/current/corporate/django/db/models/query.py" in get
192. num = len(clone)
File "/home/casufi/Sites/current/corporate/django/db/models/query.py" in __len__
53. self._result_cache = list(self.iterator())
File "/home/casufi/Sites/current/corporate/django/db/models/query.py" in iterator
162. for row in self.query.results_iter():
File "/home/casufi/Sites/current/corporate/django/db/models/sql/query.py" in results_iter
200. for rows in self.execute_sql(MULTI):
File "/home/casufi/Sites/current/corporate/django/db/models/sql/query.py" in execute_sql
1466. cursor.execute(sql, params)
File "/home/casufi/Sites/current/corporate/django/db/backends/util.py" in execute
18. return self.cursor.execute(sql, params)
Exception Type: ProgrammingError at /admin/pages/somepage/add/
Exception Value: invalid input syntax for integer: ""