mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-08 06:14:47 +03:00
Add a note about auth_token including Django migrations.
This commit is contained in:
parent
ed54d6c156
commit
52090bbe08
|
@ -126,6 +126,12 @@ To use the `TokenAuthentication` scheme you'll need to [configure the authentica
|
|||
'rest_framework.authtoken'
|
||||
)
|
||||
|
||||
---
|
||||
|
||||
**Note:** Make sure to run manage.py migrate after changing your settings. The rest_framework.authtoken app provides Django database migrations.
|
||||
|
||||
---
|
||||
|
||||
You'll also need to create tokens for your users.
|
||||
|
||||
from rest_framework.authtoken.models import Token
|
||||
|
|
Loading…
Reference in New Issue
Block a user