1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-01-12 16:35:17 +00:00
webvirtcloud/webvirtcloud/wsgi.py
D-Jy bb9fe83836
fix zombie processes
Temporary fix for zombie processes.
2023-01-20 12:06:03 +08:00

19 lines
462 B
Python

"""
WSGI config for webvirtcloud project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import signal
signal.signal(signal.SIGCHLD, signal.SIG_IGN)
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "webvirtcloud.settings")
application = get_wsgi_application()