Michael
Michael

Reputation: 3356

Debugging django on nginx Server Error (500)

Running django on nginx on my staging server I've got Server Error (500). Following this question I've set

ALLOWED_HOSTS = ['*']

But that did not solve my problem.

Does anyone know how I can see djangos exceptions?

Upvotes: 1

Views: 1923

Answers (1)

Kai Diefenbach
Kai Diefenbach

Reputation: 68

Django sends an E-Mail to all ADMINS, when DEBUG is False and some EMAIL_* settings are properly set.

See:

https://docs.djangoproject.com/en/1.10/howto/error-reporting/

You can also setup an appropriate logging to do that:

https://docs.djangoproject.com/en/1.10/topics/logging/

for more information.

Upvotes: 2

Related Questions