From ee005de662512e8ea68f7118d967a0621e0a84e6 Mon Sep 17 00:00:00 2001 From: sabaimran Date: Tue, 14 Nov 2023 12:36:38 -0800 Subject: [PATCH] Rename django files URL to server instead of django --- src/khoj/main.py | 2 +- src/khoj/utils/initialization.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/khoj/main.py b/src/khoj/main.py index 53dae1bc..9fa65fc3 100644 --- a/src/khoj/main.py +++ b/src/khoj/main.py @@ -102,7 +102,7 @@ def run(should_start_server=True): configure_routes(app) # Mount Django and Static Files - app.mount("/django", django_app, name="django") + app.mount("/server", django_app, name="server") static_dir = "static" if not os.path.exists(static_dir): os.mkdir(static_dir) diff --git a/src/khoj/utils/initialization.py b/src/khoj/utils/initialization.py index 72cd3fe5..f7c7556e 100644 --- a/src/khoj/utils/initialization.py +++ b/src/khoj/utils/initialization.py @@ -19,7 +19,7 @@ logger = logging.getLogger(__name__) def initialization(): def _create_admin_user(): logger.info( - "👩‍✈️ Setting up admin user. These credentials will allow you to configure your server at /django/admin." + "👩‍✈️ Setting up admin user. These credentials will allow you to configure your server at /server/admin." ) email_addr = os.getenv("ADMIN_EMAIL") or input("Email: ") password = os.getenv("ADMIN_PASSWORD") or input("Password: ") @@ -28,7 +28,7 @@ def initialization(): def _create_chat_configuration(): logger.info( - "🗣️ Configure chat models available to your server. You can always update these at /django/admin using the credentials of your admin account" + "🗣️ Configure chat models available to your server. You can always update these at /server/admin using the credentials of your admin account" ) try: # Some environments don't support interactive input. We catch the exception and return if that's the case. The admin can still configure their settings from the admin page.