我正在使用的第一个示例(版本2)。我遵循了安装和示例说明,但是当我在浏览器中按照的指示打开API时,我会得到如下错误。我做错了什么?这个例子看上去很基本。Page not found (404) Request URL: http://127.0.0.1:8000/
Using theURLconf defined in conf.urls, Django tried these
我有一个djangorest后端应用程序,我使用swagger来查看和记录我的apis到FE。File "/home/notsoshabby/.local/share/virtualenvs/panda_pitch-UBt5SNMA/lib/python3.7/site-packages/django/schemas/coreapi.py", line 140, in get_lin
当我试图访问这个URL时:Using the URLconf defined in scrap.urls, Django tried these URL patterns, in this order:但是,如果我使用from django.urls import path
urlpatterns =
我想了解的是,在DjangoREST框架的上下文中,当ViewSet与路由器一起使用时,URL路由是如何被使用的。当我在api/v2/people/请求一个集合时,会返回一个404响应。我不清楚视图在浏览器中呈现并获得200状态代码作为响应的一部分还需要什么?urls.py
from django.urls imp