如何为 django-oauth-toolkit 实现 html 视图?

How can I implement html views for django-oauth-toolkit?

我正在学习 Django OAuth Toolkit 中的基本教程。我是否必须为视图创建 html 文件(例如 login.html、loggout.html)?我的想法是这些文件有一个默认值 "out of the box implementation"。

当我尝试访问 oauth2 url 时出现以下错误:

django.template.loaders.app_directories.Loader: ...\lib\site-packages\django\contrib\admin\templates\registration\login.html (Source does not exist)
django.template.loaders.app_directories.Loader: ...\lib\site-packages\django\contrib\auth\templates\registration\login.html (Source does not exist)
django.template.loaders.app_directories.Loader: ...\lib\site-packages\rest_framework\templates\registration\login.html (Source does not exist)
django.template.loaders.app_directories.Loader: ...\lib\site-packages\oauth2_provider\templates\registration\login.html (Source does not exist)

原来 the site is deprecated. The updated documents have not been published to digital ocean. But you can navigate them from github directly - view on github

上的文档