From 339c03db2e95e3c64173550ce7a1e1ca1fbf7bdd Mon Sep 17 00:00:00 2001 From: Shrikrishna Singh <krishnasingh.ss30@gmail.com> Date: Mon, 20 Jun 2022 13:42:31 +0530 Subject: [PATCH] Rename BASE_URL to WAGTAILADMIN_BASE_URL --- hypha/settings/base.py | 2 +- hypha/settings/dev.py | 2 +- hypha/settings/local.py.example | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hypha/settings/base.py b/hypha/settings/base.py index 7524adc3e..6bd425583 100644 --- a/hypha/settings/base.py +++ b/hypha/settings/base.py @@ -590,7 +590,7 @@ if env.bool('BASIC_AUTH_ENABLED', False): if env.str('PRIMARY_HOST', None): # This is used by Wagtail's email notifications for constructing absolute # URLs. - BASE_URL = 'https://{}'.format(env.str('PRIMARY_HOST')) + WAGTAILADMIN_BASE_URL = 'https://{}'.format(env.str('PRIMARY_HOST')) # Security configuration diff --git a/hypha/settings/dev.py b/hypha/settings/dev.py index e791ab1b3..3cf8f5b5e 100644 --- a/hypha/settings/dev.py +++ b/hypha/settings/dev.py @@ -10,7 +10,7 @@ WAGTAIL_CACHE = False ALLOWED_HOSTS = ['apply.localhost', 'localhost', '127.0.0.1', 'hypha.test', 'apply.hypha.test'] -BASE_URL = 'http://localhost:8000' +WAGTAILADMIN_BASE_URL = 'http://localhost:8000' EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' diff --git a/hypha/settings/local.py.example b/hypha/settings/local.py.example index 2d56572e6..d4d6b8d80 100644 --- a/hypha/settings/local.py.example +++ b/hypha/settings/local.py.example @@ -14,7 +14,7 @@ CACHES = { # ALLOWED_HOSTS = ['apply.hypha.test', 'hypha.test', '127.0.0.1'] -# BASE_URL = 'http://hypha.test' +# WAGTAILADMIN_BASE_URL = 'http://hypha.test' # Turn off DEBUG mode. # DEBUG = False -- GitLab