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

时间:2018-05-12 16:47:00

标签: django python-3.x django-oauth

我正在关注Django OAuth Toolkit中的基本教程。我是否必须为视图创建html文件(例如login.html,loggout.html)?我的想法是这些文件有一个默认的“开箱即用的实现”。

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

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)

1 个答案:

答案 0 :(得分:0)

事实证明,the site上的文档已被弃用。更新的文件尚未发布到数字海洋。但是你可以直接从github导航它们 - view on github

相关问题