Skip to content

Commit

Permalink
print user token
Browse files Browse the repository at this point in the history
  • Loading branch information
HalemoGPA committed Feb 6, 2025
1 parent d19e0ac commit cb478d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ docker-compose exec web python manage.py createsuperuser
# get the token from the superuser creation
docker-compose exec web python manage.py shell
from accounts.models import CustomUser
user = CustomUser.objects.first().token # save this token somewhere
user = CustomUser.objects.first().token
print(user) # save this token somewhere (use it for authorization)
```

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

0 comments on commit cb478d0

Please sign in to comment.