How to use Redirect output of the tests to a file text_output.txt in the same directory as this HTML file. python manage.py test &> test_output.txt