The Python Oracle

request.user returns a SimpleLazyObject, how do I "wake" it?

This video explains
request.user returns a SimpleLazyObject, how do I "wake" it?

--

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: Book End

--

Chapters
00:00 Question
01:34 Accepted answer (Score 46)
02:51 Answer 2 (Score 20)
03:14 Answer 3 (Score 11)
03:34 Answer 4 (Score 4)
04:15 Thank you

--

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

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

Accepted answer links:
[my answer on a similar question]: https://stackoverflow.com/a/10507200/654...

Answer 4 links:
[https://github.com/django/django/blob/ma...]: https://github.com/django/django/blob/ma...
[https://docs.djangoproject.com/en/dev/to...]: https://docs.djangoproject.com/en/dev/to...

--

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

--

Tags
#python #django #djangousers #djangocontrib

#avk47