Add managers URLs as musician settings.
This commit is contained in:
parent
59f80ecf69
commit
f023cb21c7
|
@ -1,14 +1,37 @@
|
||||||
# allowed resources limit hardcoded because cannot be retrieved from the API.
|
from django.conf import settings
|
||||||
ALLOWED_RESOURCES = {
|
|
||||||
'INDIVIDUAL':
|
|
||||||
{
|
def getsetting(name):
|
||||||
# 'disk': 1024,
|
return getattr(settings, name, DEFAULTS.get(name))
|
||||||
# 'traffic': 2048,
|
|
||||||
'mailbox': 2,
|
|
||||||
|
DEFAULTS = {
|
||||||
|
# allowed resources limit hardcoded because cannot be retrieved from the API.
|
||||||
|
"ALLOWED_RESOURCES": {
|
||||||
|
'INDIVIDUAL':
|
||||||
|
{
|
||||||
|
# 'disk': 1024,
|
||||||
|
# 'traffic': 2048,
|
||||||
|
'mailbox': 2,
|
||||||
|
},
|
||||||
|
'ASSOCIATION': {
|
||||||
|
# 'disk': 5 * 1024,
|
||||||
|
# 'traffic': 20 * 1024,
|
||||||
|
'mailbox': 10,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
'ASSOCIATION': {
|
"URL_DB_PHPMYADMIN": "https://www.phpmyadmin.net/",
|
||||||
# 'disk': 5 * 1024,
|
"URL_MAILTRAIN": "https://mailtrain.org/",
|
||||||
# 'traffic': 20 * 1024,
|
"URL_SAAS_WORDPRESS": "https://wordpress.org/",
|
||||||
'mailbox': 10,
|
"URL_SAAS_GITLAB": "https://gitlab.org/",
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ALLOWED_RESOURCES = getsetting("ALLOWED_RESOURCES")
|
||||||
|
|
||||||
|
URL_DB_PHPMYADMIN = getsetting("URL_DB_PHPMYADMIN")
|
||||||
|
|
||||||
|
URL_MAILTRAIN = getsetting("URL_MAILTRAIN")
|
||||||
|
|
||||||
|
URL_SAAS_WORDPRESS = getsetting("URL_SAAS_WORDPRESS")
|
||||||
|
|
||||||
|
URL_SAAS_GITLAB = getsetting("URL_SAAS_GITLAB")
|
||||||
|
|
Loading…
Reference in New Issue