The Python Oracle

How do I check whether this user is anonymous or actually a user on my system?

This video explains
How do I check whether this user is anonymous or actually a user on my system?

--

Become part of the top 3% of the developers by applying to Toptal
https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game Looping

--

Chapters
00:00 Question
00:31 Accepted answer (Score 200)
00:46 Answer 2 (Score 20)
01:08 Answer 3 (Score 8)
01:40 Answer 4 (Score 4)
02:04 Thank you

--

Full question
https://stackoverflow.com/questions/4642...

Accepted answer links:
[request.user.is_anonymous]: https://docs.djangoproject.com/en/stable...

Answer 2 links:
[https://docs.djangoproject.com/en/dev/re...]: https://docs.djangoproject.com/en/dev/re...

Answer 3 links:
[request.user.is_authenticated]: https://docs.djangoproject.com/en/3.1/re...
[One answer]: https://stackoverflow.com/a/4642607/4268...
[django.contrib.auth documentation]: https://docs.djangoproject.com/en/3.1/re...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #django #http #authentication

#avk47