From 1e10cf0ab3dc0beb2607bc0130d851c6369b6e36 Mon Sep 17 00:00:00 2001 From: catborise Date: Wed, 4 Nov 2026 16:39:13 +0300 Subject: [PATCH] chore: remove the unused webvirtcloud/wsgi_custom.py Nothing loads it: gunicorn (systemd, runit) and Django use webvirtcloud.wsgi. It exec'd the shell script venv/bin/activate as Python, which cannot run, and left that file open. --- webvirtcloud/wsgi_custom.py | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 webvirtcloud/wsgi_custom.py diff --git a/webvirtcloud/wsgi_custom.py b/webvirtcloud/wsgi_custom.py deleted file mode 100644 index 109c99eb..00000000 --- a/webvirtcloud/wsgi_custom.py +++ /dev/null @@ -1,27 +0,0 @@ -""" -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 os -import sys - -from django.core.wsgi import get_wsgi_application - -# execfile('/srv/webvirtcloud/venv/bin/activate_this.py', dict(__file__='/srv/webvirtcloud/venv/bin/activate_this.py')) -exec( - compile( - open("/srv/webvirtcloud/venv/bin/activate", "rb").read(), - "/srv/webvirtcloud/venv/bin/activate", - "exec", - ) -) - -sys.path.append("/srv/webvirtcloud") - -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "webvirtcloud.settings") - -application = get_wsgi_application()