1👍
✅
Save the result of the querysets to the session. When I say to save the results, what I mean is to run list()
on it to execute them, and then store the resulting list in request.session
.
3👍
From my experience, I think saving your result on session
is a good and simple solution.
- [Django]-Two process in one Heroku app vs two heroku apps
- [Django]-ImportError: No module named context_processors
- [Django]-Django aggregation across multiple tables in ModelAdmin queryset
- [Django]-Encode ImageField in base64 and store it in DB instead of path of the image
- [Django]-Django: TemplateDoesNotExist error for base template
- [Django]-Invalid BACKEND error when I have the seemingly correct settings — why?
- [Django]-How to create and serialize an unmanaged model Django
- [Django]-Trying to test django app locally with foreman
Source:stackexchange.com