From d61b0dd55c0b78db6ea5cf080a03dc7f74ec9471 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Mon, 20 Nov 2023 14:55:00 -0800 Subject: [PATCH] Add Khoj Django app package to sys path to load Django module via pip install --- src/khoj/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/khoj/main.py b/src/khoj/main.py index 9fa65fc3..022efcc1 100644 --- a/src/khoj/main.py +++ b/src/khoj/main.py @@ -25,6 +25,7 @@ from django.core.asgi import get_asgi_application from django.core.management import call_command # Initialize Django +sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings") django.setup()