Skip to content

Commit

Permalink
update wsgi
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Küng committed Jun 26, 2024
1 parent d171f1c commit 8938112
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions munkiwebadmin/wsgi.py
Original file line number Diff line number Diff line change
@@ -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()


0 comments on commit 8938112

Please sign in to comment.