http://127.0.0.1:8000/api-auth/login/ 登录之后报错,

来源:4-2 DRF中的装饰器api_view

YUAYU

2021-04-11 23:31

Page not found (404)

Request Method:GET
Request URL:http://127.0.0.1:8000/accounts/profile/

Using the URLconf defined in dj_drf.urls, Django tried these URL patterns, in this order:

  1. admin/

  2. api-auth/

  3. course/

The current path, accounts/profile/, didn't match any of these.


写回答 关注

1回答

  • Lyong2023
    2021-05-21 23:58:56

    dj_drf.urls路由是不是有问题,提示路径无法匹配~

Django REST framework前后端分离框架实践

教你快速构建一个课程管理系统

6655 学习 · 33 问题

查看课程

相似问题