From 8938112d20c416d7d37e30875207b32096d4b3c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steve=20Ku=CC=88ng?= Date: Wed, 26 Jun 2024 15:00:10 +0200 Subject: [PATCH] update wsgi --- munkiwebadmin/wsgi.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/munkiwebadmin/wsgi.py b/munkiwebadmin/wsgi.py index 5910c61f..efb95130 100644 --- a/munkiwebadmin/wsgi.py +++ b/munkiwebadmin/wsgi.py @@ -1,20 +1,8 @@ -""" -WSGI config for munkiwebadmin 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/1.9/howto/deployment/wsgi/ -""" - import os - from django.core.wsgi import get_wsgi_application -cert = os.path.join('/usr/local/share/ca-certificates','ca-certificates.crt') -if os.path.exists(cert): - os.environ['REQUESTS_CA_BUNDLE'] = cert - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "munkiwebadmin.settings") application = get_wsgi_application() + +