Add new settings for Templates.

This commit is contained in:
Abhilash Raj
2018-07-25 23:01:08 -07:00
committed by Abhilash Raj
parent 7ce2c3f14d
commit 9f8fd65bb5
2 changed files with 7 additions and 0 deletions

View File

@@ -58,6 +58,11 @@ change them unless you know what you want.
configuration. This is a separate configuration from`SERVE_FROM_DOMAIN` as
latter is used for other purposes too.
- `POSTORIUS_TEMPLATE_BASE_URL`: The base url at which the `mailman-web`
container can be reached from `mailman-core` container. This is set to
`http://mailman-web:8000` by default so that Core can fetch templates from
Core.
Running
=======

View File

@@ -403,6 +403,8 @@ Q_CLUSTER = {
'orm': 'default',
}
POSTORIUS_TEMPLATE_BASE_URL = os.environ.get('POSTORIUS_TEMPLATE_BASE_URL', 'http://mailman-web:8000')
try:
from settings_local import *
except ImportError: