[Answered ]-Django: set DEBUG = False causes Server Error (500)

1👍

Django does not support file serving in production (have a look here).
If you want to save and serve files in production with debug=False try to switch to another storage backend.

0👍

You can debug the error by this setting:

DEBUG_PROPAGATE_EXCEPTIONS = True

See the reference here:- https://docs.djangoproject.com/en/4.0/ref/settings/#debug-propagate-exceptions

Leave a comment