我正在做一个拍卖网站使用姜戈。当使用迁移命令时,它会给出一个错误"ValueError: Field 'bid‘expected a number但got“。models.py文件的代码是: from django.contrib.auth.models import AbstractUser
def
当我提交表单时,我得到了这个错误字段'id‘应该是一个数字,但得到了为什么我得到这个错误?我的代码出了什么问题:( 查看: def employee_list(request): form = EmployeeForm)
self.fields['department'].queryset = Department
site-packages\django\db\models\fields\__init__.py", line 1822, in get_prep_valueValueError__class__(ValueError: Field 'id' expected a number but got 'shafquetnaghmi'.
我尝试使用使用django搜索sqlite中的一个特定参数,但是我得到了以下错误:ValueError: invalid literal for int() withValueError: Field 'id' expected a number but got '10.48.38.28'.
[27/Sep/2022 13:23:59] "GET /sipinterfaceself.siI
我将在DigitalOcean上部署我的django应用程序。一切顺利,除了跟随错误,我的问题是:在哪里可以找到这个错误的来源,实际上是在哪个文件中?site-packages/django/db/models/fields/__init__.py", line 1768, in get_prep_value
ValueErrorpython3.6/site-package