π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
[WEB-4008] fix: handle when settings are None #7016
Aaron Heckmann26c8cba322d1
diff --git a/apiserver/plane/authentication/utils/host.py b/apiserver/plane/authentication/utils/host.pyindex 67c8a4f723..415791a879 100644--- a/apiserver/plane/authentication/utils/host.py+++ b/apiserver/plane/authentication/utils/host.py@@ -21,7 +21,9 @@ def base_host(# Admin redirectionif is_admin:- admin_base_path = getattr(settings, "ADMIN_BASE_PATH", "/god-mode/")+ admin_base_path = getattr(settings, "ADMIN_BASE_PATH", None)+ if not isinstance(admin_base_path, str):+ admin_base_path = "/god-mode/"if not admin_base_path.startswith("/"):admin_base_path = "/" + admin_base_pathif not admin_base_path.endswith("/"):@@ -34,7 +36,9 @@ def base_host(# Space redirectionif is_space:- space_base_path = getattr(settings, "SPACE_BASE_PATH", "/spaces/")+ space_base_path = getattr(settings, "SPACE_BASE_PATH", None)+ if not isinstance(space_base_path, str):+ space_base_path = "/spaces/"if not space_base_path.startswith("/"):space_base_path = "/" + space_base_pathif not space_base_path.endswith("/"):diff --git a/apiserver/plane/utils/host.py b/apiserver/plane/utils/host.pyindex d74a86ffdf..860e19e0e3 100644--- a/apiserver/plane/utils/host.py+++ b/apiserver/plane/utils/host.py@@ -25,7 +25,9 @@ def base_host(# Admin redirectionif is_admin:- admin_base_path = getattr(settings, "ADMIN_BASE_PATH", "/god-mode/")+ admin_base_path = getattr(settings, "ADMIN_BASE_PATH", None)+ if not isinstance(admin_base_path, str):+ admin_base_path = "/god-mode/"if not admin_base_path.startswith("/"):admin_base_path = "/" + admin_base_pathif not admin_base_path.endswith("/"):@@ -38,7 +40,9 @@ def base_host(# Space redirectionif is_space:- space_base_path = getattr(settings, "SPACE_BASE_PATH", "/spaces/")+ space_base_path = getattr(settings, "SPACE_BASE_PATH", None)+ if not isinstance(space_base_path, str):+ space_base_path = "/spaces/"if not space_base_path.startswith("/"):space_base_path = "/" + space_base_pathif not space_base_path.endswith("/"):