diff --git a/hypha/settings/base.py b/hypha/settings/base.py index 7524adc3ed3fff2b1c147312881f99f6209d6386..6bd4255830a348abb7f259b98eadb11765006478 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 e791ab1b3d4204629113a02726f9ca64bb6f1367..3cf8f5b5e101b4a13b1759656bce40c4f7bebbab 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 2d56572e60fc84ebfb065f5bc93ccf5791d47e27..d4d6b8d80fb67db57b3da668444f44cdb1466cd0 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