django-test-without-migrations
django-test-without-migrations copied to clipboard
Apparent circular dependency issue involving this library and oauth_provider
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
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'