Commit 975fe7267fd99dc48ba960a3d5509731334fa4d7
1 parent
a7e544d0
Exists in
plugin_extra_configs
Added MAILMANAPI_URL ending slash to settings
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
colab/accounts/utils/mailman.py
@@ -13,7 +13,7 @@ LOGGER = logging.getLogger('colab.mailman') | @@ -13,7 +13,7 @@ LOGGER = logging.getLogger('colab.mailman') | ||
13 | 13 | ||
14 | def get_url(listname=None): | 14 | def get_url(listname=None): |
15 | if listname: | 15 | if listname: |
16 | - return urlparse.urljoin(settings.MAILMAN_API_URL, '/' + listname) | 16 | + return urlparse.urljoin(settings.MAILMAN_API_URL, listname) |
17 | 17 | ||
18 | return settings.MAILMAN_API_URL | 18 | return settings.MAILMAN_API_URL |
19 | 19 |
colab/settings.py
@@ -239,7 +239,7 @@ SUPER_ARCHIVES_EXCLUDE = [] | @@ -239,7 +239,7 @@ SUPER_ARCHIVES_EXCLUDE = [] | ||
239 | SUPER_ARCHIVES_LOCK_FILE = '/var/lock/colab/import_emails.lock' | 239 | SUPER_ARCHIVES_LOCK_FILE = '/var/lock/colab/import_emails.lock' |
240 | 240 | ||
241 | # Mailman API settings | 241 | # Mailman API settings |
242 | -MAILMAN_API_URL = 'http://localhost:8124' | 242 | +MAILMAN_API_URL = 'http://localhost:8124/v2/' |
243 | 243 | ||
244 | LOGIN_URL = '/user/login' | 244 | LOGIN_URL = '/user/login' |
245 | LOGIN_REDIRECT_URL = '/' | 245 | LOGIN_REDIRECT_URL = '/' |