Revision a5fbc00d snf-pithos-app/pithos/api/settings.py
b/snf-pithos-app/pithos/api/settings.py | ||
---|---|---|
1 | 1 |
#coding=utf8 |
2 | 2 |
from django.conf import settings |
3 |
from urlparse import urljoin |
|
3 | 4 |
|
4 | 5 |
ASTAKOS_URL = getattr(settings, "ASTAKOS_URL", |
5 | 6 |
"https://accounts.example.synnefo.org/") |
... | ... | |
57 | 58 |
# the requests on its own. |
58 | 59 |
PROXY_USER_SERVICES = getattr(settings, 'PITHOS_PROXY_USER_SERVICES', True) |
59 | 60 |
|
60 |
USER_CATALOG_URL = getattr(settings, 'PITHOS_USER_CATALOG_URL', |
|
61 |
'https://accounts.example.synnefo.org/user_catalogs/') |
|
62 |
USER_FEEDBACK_URL = getattr(settings, 'PITHOS_USER_FEEDBACK_URL', |
|
63 |
'https://accounts.example.synnefo.org/feedback/') |
|
64 |
USER_LOGIN_URL = getattr(settings, 'PITHOS_USER_LOGIN_URL', |
|
65 |
'https://accounts.example.synnefo.org/login/') |
|
61 |
USER_CATALOG_URL = urljoin(ASTAKOS_URL, "user_catalogs") |
|
62 |
USER_FEEDBACK_URL = urljoin(ASTAKOS_URL, "feedback") |
|
63 |
USER_LOGIN_URL = urljoin(ASTAKOS_URL, "login") |
|
66 | 64 |
|
67 | 65 |
# Set the quota holder component URI |
68 | 66 |
USE_QUOTAHOLDER = getattr(settings, 'PITHOS_USE_QUOTAHOLDER', False) |
Also available in: Unified diff