diff --git a/engine/core/graphene/object_types.py b/engine/core/graphene/object_types.py index 2b3e9a7c..12423275 100644 --- a/engine/core/graphene/object_types.py +++ b/engine/core/graphene/object_types.py @@ -675,7 +675,6 @@ class CategoryTagType(DjangoObjectType): # type: ignore [misc] class ConfigType(ObjectType): # type: ignore [misc] project_name = String(description=_("project name")) - base_domain = String(description=_("company email")) company_name = String(description=_("company name")) company_address = String(description=_("company address")) company_phone_number = String(description=_("company phone number")) diff --git a/evibes/settings/jazzmin.py b/evibes/settings/jazzmin.py index 7e7b253e..40d54ee5 100644 --- a/evibes/settings/jazzmin.py +++ b/evibes/settings/jazzmin.py @@ -1,5 +1,6 @@ from django.utils.translation import gettext_lazy as _ +from evibes.settings import BASE_DOMAIN, STOREFRONT_DOMAIN from evibes.settings.base import EVIBES_VERSION from evibes.settings.constance import CONSTANCE_CONFIG @@ -18,11 +19,11 @@ JAZZMIN_SETTINGS = { "user_avatar": "avatar", "topmenu_links": [ {"name": _("Home"), "url": "admin:index"}, - {"name": _("Storefront"), "url": f"https://{CONSTANCE_CONFIG.get('BASE_DOMAIN')[0]}", "new_window": True}, # type: ignore [index] + {"name": _("Storefront"), "url": f"https://{STOREFRONT_DOMAIN}", "new_window": True}, # type: ignore [index] {"name": "GitLab", "url": "https://gitlab.com/wiseless/evibes", "new_window": True}, { "name": _("GraphQL Docs"), - "url": f"https://api.{CONSTANCE_CONFIG.get('BASE_DOMAIN')[0]}/graphql", # type: ignore [index] + "url": f"https://api.{BASE_DOMAIN}/graphql", # type: ignore [index] "new_window": True, }, {