mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 15:38:55 +01:00
Add Khoj Django app package to sys path to load Django module via pip install
This commit is contained in:
parent
4e98acbca7
commit
d61b0dd55c
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ from django.core.asgi import get_asgi_application
|
||||||
from django.core.management import call_command
|
from django.core.management import call_command
|
||||||
|
|
||||||
# Initialize Django
|
# Initialize Django
|
||||||
|
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings")
|
||||||
django.setup()
|
django.setup()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue