我在这里写了一些代码。请检查一下文件。当我从django admin填充所有字段时,它就工作了,但当我用重定向它时http://127.0.0.1:8000/contest/然后我得到低于错误
django.core.exceptions.ImproperlyConfigured: Field name `titleweb_poster` is not valid for model `ContestDetail`.
我哪里做错了?我该如何解决?
在serializers.py中,ContestDetailSerial.Meta.fields
中title
和web_poster
之间缺少逗号,
。