django-rest-swagger返回内部服务器错误

时间:2022-05-18 02:52:43

I am making one API resource and I thought to use django-rest-swagger for this and I have done all the steps as provided in the django-rest-swagger documentation

我正在制作一个API资源,我想为此使用django-rest-swagger,我已经完成了django-rest-swagger文档中提供的所有步骤

After I tried the url http://localhost:8000/docs/ and I am unable to open and view my APIs. The error screenshot is attached below. If anyone has encountered it before please help me out.

我尝试了网址http:// localhost:8000 / docs /后,我无法打开并查看我的API。错误截图附于下方。如果有人遇到过它请帮助我。

django-rest-swagger返回内部服务器错误

1 个解决方案

#1


1  

The error was due to old fields from the database which solved this question.

该错误是由于数据库中的旧字段解决了这个问题。

#1


1  

The error was due to old fields from the database which solved this question.

该错误是由于数据库中的旧字段解决了这个问题。