可浏览API登录后的Django Rest Framework 404

时间:2014-10-15 21:59:42

标签: django django-rest-framework

我关注Tutorial,其他一切正常。唯一的问题是,当我尝试使用Rest Framework可浏览API登录时,我在登录后得到404:

Request URL:    http://localhost:7000/accounts/profile/
Using the URLconf defined in shelter.urls, Django tried these URL patterns, in this order:

    ^times/
    ^admin/
    ^api-auth/

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

Times是应用程序的名称。 API登录重定向到帐户/配置文件,我没有设置该URL,因此当然响应是404.我可能错过了一个简单而明显的步骤。

0 个答案:

没有答案