jazzband / django-oauth-toolkit

OAuth2 goodies for the Djangonauts!
https://django-oauth-toolkit.readthedocs.io
Other
3.06k stars 777 forks source link

TypeError: the 'package' argument is required to perform a relative import for '..' #1321

Closed codewriter3000 closed 9 months ago

codewriter3000 commented 9 months ago

Describe the bug I'm trying to follow the tutorial and routing to this route: http://127.0.0.1:8000/o/authorize/?response_type-code&code_challenge=<challenge code>&code_challenge_method=5256&client_id=<client id>&redirect_uri=http://127.0.0.1:8000/noexist/callback

But I get this error: TypeError: the 'package' argument is required to perform a relative import for '..'

I think it's because I moved around some things in INSTALLED_APPS.

To Reproduce

Follow the tutorial, but in INSTALLED_APPS, move user, oauth2_provider from the top to the bottom. All of the other routes work fine though. Expected behavior

I'm expecting to see an authorization URL come up like the one in the tutorial. Version

2.3.0

Additional context