I’m using the Python shell in Django to make some queries. The results keep getting truncated. I get the message, “remaining elements truncated.” How can I see all the results? Or, how can I write the results to a file?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Querysets do this automatically when you just output them in the shell – which implictly calls
repron them. If you callliston the queryset instead, that will output everything:Note that you don’t need to do this within your code, this is just for output within the shell. Obviously, beware of doing this on a model with a very large number of entries.