jazzband/django-rest-knox

Doc Question: Where is 'urls(r'api/auth/', include('knox.urls'))'?

Closed this issue · 2 comments

https://jazzband.github.io/django-rest-knox/urls/#urls-knoxurls
I following doc for install knox, but i don't know which package of urls
image

@Birddle Ah, I think I know what you mean: are you confused about where the urls method is coming from?
On newer django versions use the include method, like this:

from django.urls import include

urlpatterns = [
    ....
    # Knox URLs
    path("auth/", include("knox.urls")),
]

Reference:

Note: if you have some time, can you contribute this small update to the documentation?