Answer the question
In order to leave comments, you need to log in
How to shuffle a QuerySet in Django?
How to randomize a queryset consisting of posts?
upd: The database consists of 8k+ heavily tagged posts
Answer the question
In order to leave comments, you need to log in
https://docs.djangoproject.com/en/2.0/ref/models/q...
Note: order_by('?')
queries may be expensive and slow, depending on the database backend you're using.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question