Answer the question
In order to leave comments, you need to log in
How to deal with 'AnonymousUser' object is not iterable problem?
What is the best method to fix this problem?
Answer the question
In order to leave comments, you need to log in
Don't try to iterate over an anonymous user, I guess.
In general, can you describe in more detail under what conditions you encounter this problem?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question