Search code examples
djangopython-3.xdjango-oauth

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)

Solution

  • 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