diff --git a/archery/settings.py b/archery/settings.py index db3e24e..0ed8267 100644 --- a/archery/settings.py +++ b/archery/settings.py @@ -225,6 +225,9 @@ SESSION_SAVE_EVERY_REQUEST = True SESSION_EXPIRE_AT_BROWSER_CLOSE = True # 关闭浏览器,则COOKIE失效 +#注册帮助页面的URL +REGISTER_HELP_URL = "https://archerydms.com" + # 该项目本身的mysql数据库地址 DATABASES = { # "default": { diff --git a/common/templates/login.html b/common/templates/login.html index e4f898f..02fb755 100644 --- a/common/templates/login.html +++ b/common/templates/login.html @@ -88,6 +88,7 @@ diff --git a/common/utils/global_info.py b/common/utils/global_info.py index 5dc400a..8102b02 100644 --- a/common/utils/global_info.py +++ b/common/utils/global_info.py @@ -1,6 +1,7 @@ # -*- coding: UTF-8 -*- from sql.utils.workflow_audit import Audit from archery import display_version +from archery import settings from common.config import SysConfig from sql.models import TwoFactorAuthConfig @@ -31,4 +32,5 @@ def global_info(request): "archery_version": display_version, "watermark_enabled": watermark_enabled, "twofa_type": twofa_type, + "register_help": settings.REGISTER_HELP_URL, }