Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 728 Bytes

install.rst

File metadata and controls

37 lines (23 loc) · 728 Bytes

Installation

Install with pip:

pip install django-oauth-toolkit

Add oauth2_provider to your INSTALLED_APPS

INSTALLED_APPS = (
    ...
    'oauth2_provider',
)

If you need an OAuth2 provider you'll want to add the following to your :file:`urls.py`

from django.urls import include, path
from oauth2_provider import urls as oauth2_urls

urlpatterns = [
    ...
    path('o/', include(oauth2_urls)),
]

Sync your database

python manage.py migrate oauth2_provider

Next step is :doc:`getting started <getting_started>` or :doc:`first tutorial <tutorial/tutorial_01>`.