django-test-without-migrations icon indicating copy to clipboard operation
django-test-without-migrations copied to clipboard

Apparent circular dependency issue involving this library and oauth_provider

Open bepetersn opened this issue 3 years ago • 1 comments

For others who have a problem with oauth_provider when trying to use this library's -n option and -v2 or -v3 arguments... See this comment / issue thread: https://github.com/jazzband/django-oauth-toolkit/issues/240#issuecomment-328671287

bepetersn avatar Jan 10 '22 21:01 bepetersn

Workaround from the above thread... Add the following to your settings.py:

OAUTH2_PROVIDER_ACCESS_TOKEN_MODEL = 'oauth2_provider.AccessToken'
OAUTH2_PROVIDER_APPLICATION_MODEL = 'oauth2_provider.Application'
OAUTH2_PROVIDER_REFRESH_TOKEN_MODEL = 'oauth2_provider.RefreshToken'

bepetersn avatar Jan 10 '22 21:01 bepetersn