Skip to content

Commit cb478d0

Browse files
committed
print user token
1 parent d19e0ac commit cb478d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ docker-compose exec web python manage.py createsuperuser
276276
# get the token from the superuser creation
277277
docker-compose exec web python manage.py shell
278278
from accounts.models import CustomUser
279-
user = CustomUser.objects.first().token # save this token somewhere
279+
user = CustomUser.objects.first().token
280+
print(user) # save this token somewhere (use it for authorization)
280281
```
281282

282283
4. Application will be running at http://localhost:8001 and the swagger documentation at http://localhost:8001/v1/docs

0 commit comments

Comments
 (0)