Django 500.html template not used for internal server error on Amazon Elastic Beanstalk

I do not understand why django is not using my 500.html template for server errors. I deployed my application to Elastic Beanstalk, and although all 404 requests are handled by the 404.html template, 500 errors show a standard apache error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Apache/2.2.25 (Amazon) Server at myapp.elasticbeanstalk.com Port 80

What could be? (I have both templates in the same place)

+3
source share
1 answer

, 500.html. Django 500 . , "double", .

Django:

500 500.html , .

https://docs.djangoproject.com/en/dev/topics/http/views/#the-500-server-error-view

, - 500, , . , , ...

, .. ( ).

+4

All Articles