Skip to content

Commit

Permalink
add path to wsgi
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourpeas committed May 28, 2024
1 parent 563e03f commit 2748fae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rcpch_nhs_organisations/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 2748fae

Please sign in to comment.