Doc Question: Where is 'urls(r'api/auth/', include('knox.urls'))'?
Closed this issue · 2 comments
PunkFleet commented
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
luqmansen commented
giovannicimolin commented
@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?