19👍
✅
on linux, you can do this:
python manage.py test > stdout.txt 2> stderr.txt
to redirect the output to files.
3👍
Linux only…
python manage.py test 2>&1 | tee -a test.txt
This captures the stdout
and stderr
results as a single stream and still sends the output to the console.
Also see In the shell, what does " 2>&1 " mean? for the output redirection explanation
And How do I write stderr to a file while using "tee" with a pipe? for a slightly different output redirection method
- Django – Filter queryset by CharField value length
- AssertionError at /posts/ 'PostList' should either include a `queryset` attribute, or override the `get_queryset()` method
- Setting up New Relic for Django development server
- X-editable inline editing in Django – how to get CSRF protection?
Source:stackexchange.com