jazzband / django-oauth-toolkit

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

Drop re_path from installation guide #1435

Closed jaap3 closed 1 week ago

jaap3 commented 1 week ago

Description of the Change

Removed the bit about using re_path to add urls. It's just confusing, as a user I don't know why I should pick this option over the first one.

Checklist

jaap3 commented 1 week ago

Just a note, including the urls like this:

from oauth2_provider import urls as oauth2_urls

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

works just as well, and removes the need to set a namespace (app_name in the urls module does the job).