简体   繁体   中英

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

I am following the basic tutorial in Django OAuth Toolkit . Do I have to create the html files for the views (eg login.html, loggout.html)? My thought is that there is a default "out of the box implementation" for these files.

I get the following error when I try to access oauth2 urls:

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)

it turns out that the documentation on 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM