问答详情
源自:4-2 DRF中的装饰器api_view

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

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.


提问者:YUAYU 2021-04-11 23:31

个回答

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

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