mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Rename django files URL to server instead of django
This commit is contained in:
@@ -102,7 +102,7 @@ def run(should_start_server=True):
|
|||||||
configure_routes(app)
|
configure_routes(app)
|
||||||
|
|
||||||
# Mount Django and Static Files
|
# Mount Django and Static Files
|
||||||
app.mount("/django", django_app, name="django")
|
app.mount("/server", django_app, name="server")
|
||||||
static_dir = "static"
|
static_dir = "static"
|
||||||
if not os.path.exists(static_dir):
|
if not os.path.exists(static_dir):
|
||||||
os.mkdir(static_dir)
|
os.mkdir(static_dir)
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ logger = logging.getLogger(__name__)
|
|||||||
def initialization():
|
def initialization():
|
||||||
def _create_admin_user():
|
def _create_admin_user():
|
||||||
logger.info(
|
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: ")
|
email_addr = os.getenv("ADMIN_EMAIL") or input("Email: ")
|
||||||
password = os.getenv("ADMIN_PASSWORD") or input("Password: ")
|
password = os.getenv("ADMIN_PASSWORD") or input("Password: ")
|
||||||
@@ -28,7 +28,7 @@ def initialization():
|
|||||||
|
|
||||||
def _create_chat_configuration():
|
def _create_chat_configuration():
|
||||||
logger.info(
|
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:
|
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.
|
# 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.
|
||||||
|
|||||||
Reference in New Issue
Block a user