小编Pra*_*thi的帖子

AttributeError:模块“rest_framework.serializers”在 Swagger 内的 Django 中没有属性“NullBooleanField”

即使 django 没有在任何地方导入,也会引发此错误。它由 OpenAPISchemaGenerator 抛出,如下所示:

 File "/opt/hostedtoolcache/Python/3.8.13/x64/lib/python3.8/site-packages/drf_yasg/inspectors/field.py", line 406, in <module>
    (serializers.NullBooleanField, (openapi.TYPE_BOOLEAN, None)),
AttributeError: module 'rest_framework.serializers' has no attribute 'NullBooleanField'
Run Code Online (Sandbox Code Playgroud)

我该如何解决?关联。它没有回答问题。

django django-serializer swagger

10
推荐指数
3
解决办法
7092
查看次数

如何将 colab 深色主题引入 Jupyter Notebook

我想知道当我们切换到暗模式时 google colab 使用什么主题,以及如何为 jupyter notebook 安装它。

themes jupyter-notebook google-colaboratory

3
推荐指数
1
解决办法
4114
查看次数