Django==1.11
django扩展==1.9.7
/api/userprofiles/<pk>/ poinkbackend.apps.userprofiles.api.viewsets.UserProfileViewset api:userprofile-detail
/api/userprofiles/<pk>\.<format>/ poinkbackend.apps.userprofiles.api.viewsets.UserProfileViewset api:userprofile-detail
/a
医生说
show_urls - Displays the url routes that are defined in your project. Very crude at this point.
我用format
关键字搜索过。但结果与我的问题无关
它代表?format=json
参数吗
我曾尝试用html、xml替换json。我得到了错误的回报
参考资料:http://django-extensions.readthedocs.io/en/latest/command_extensions.html?highlight=show_urls
在该URL模式中,
format
是URL模式中的一个关键字参数(不同于?format=json
在查询字符串中)。匹配的URL应为:相关问题 更多 >
编程相关推荐