1

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?

Community
  • 1
  • 1
Michael
  • 3,206
  • 5
  • 26
  • 44

1 Answers1

2

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.

Paolo Stefan
  • 10,112
  • 5
  • 45
  • 64