Coverage for product_risk_suite/product_risk_suite/wsgi.py: 0%

7 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-07-16 14:44 +0000

1""" 

2WSGI config for product_risk_suite project. 

3 

4It exposes the WSGI callable as a module-level variable named ``application``. 

5 

6For more information on this file, see 

7https://docs.djangoproject.com/en/6.0/howto/deployment/wsgi/ 

8""" 

9 

10import os 

11import sys 

12 

13from django.core.wsgi import get_wsgi_application 

14 

15# In Docker, /config is a mounted volume that may hold a custom settings 

16# module (e.g. /config/custom_settings.py); make it importable. 

17if os.path.isdir('/config') and '/config' not in sys.path: 

18 sys.path.insert(0, '/config') 

19 

20os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'product_risk_suite.settings') 

21 

22application = get_wsgi_application()