sunboy123
sunboy123
i cannot find it named NinjaFile.
> if more than one foreignkey? i feel this solution is not very well.
> _错误 1_在理想情况下 - 应该能够直接设置字段的 FK 而无需单独的查询,因为 Django 文档在以下链接中突出显示:[https ://docs.djangoproject.com/en/4.0/topics/db /优化/#use-foreign-key-values-directly](https://docs.djangoproject.com/en/4.0/topics/db/optimization/#use-foreign-key-values-directly) > > 但是,使用 ModelSchema,该字段将被验证到 FK 模型实例,并且不能使用“foo_id”快捷方式。 > > _错误 2_ 此外,如果确实在有效负载(POST 或 PUT 或 PATCH)中使用了“foo_id”,它会被解析为“foo”。 > > 例如: >...
我也碰到了这个问题你解决了么
@flytrap 已解决 你得后台配置有问题 将文档中得默认 配置 DEFAULT_FILE_STORAGE = 'qiniustorage.backends.QiniuMediaStorage' 改为DEFAULT_FILE_STORAGE = 'qiniustorage.backends.QiniuStorage' 就可以了
@chrismaille i happend the same problem as you. can you solve it?
@chrismaille thanks a lot .