From 2748faedd951e1bb3ee1a0bd9f3926a8c653fee9 Mon Sep 17 00:00:00 2001 From: eatyourpeas Date: Tue, 28 May 2024 16:02:37 +0100 Subject: [PATCH] add path to wsgi --- rcpch_nhs_organisations/wsgi.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rcpch_nhs_organisations/wsgi.py b/rcpch_nhs_organisations/wsgi.py index 1400fcc..2464e2d 100644 --- a/rcpch_nhs_organisations/wsgi.py +++ b/rcpch_nhs_organisations/wsgi.py @@ -8,9 +8,14 @@ """ import os +import sys + +sys.path.append(os.path.abspath(os.path.dirname(__file__))) +print("Current directory:", os.getcwd()) +print("Python path:", sys.path) from django.core.wsgi import get_wsgi_application -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'rcpch_nhs_organisations.settings') +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "rcpch_nhs_organisations.settings") application = get_wsgi_application()