django-configurations/configurations/fastcgi.py
Finn-Thorben Sell 7e05c085be
add custom error handling for own exceptions
This introduces a function that wraps django entry points with an error
handler so that our own exception can be pretty-printed to an end-user
without a large stack-trace.
The defined error handler has also been applied to the existing
management, wsgi, asgi and fastcgi entry point definitions.
2022-03-18 21:56:21 +01:00

8 lines
201 B
Python

from . import importer
from .error_handling import with_error_handler
importer.install()
from django.core.servers.fastcgi import dj_runfastcgi # noqa
runfastcgi = with_error_handler(dj_runfastcgi)