Ilya Bibik
Ilya Bibik

Reputation: 4114

How to view Django test server errors log?

Tester complains about errors that force to restart django test server several times.However never logged the actual errors from the terminal.

Is there a way to view a log and to get the errors that forced the server to fail? (I am not able to reproduce error that will force server to fail)

Upvotes: 1

Views: 569

Answers (1)

Darshit
Darshit

Reputation: 430

There is default logging mechanism for Django. Configure settings as described in Django documentation, add logging calls to code and you are able to fetch log in files. Please visit this link to learn how to configure logging.

Upvotes: 1

Related Questions