Allow to configure managers URLs on project settings.

This commit is contained in:
Santiago Lamora 2020-01-23 16:32:36 +01:00
parent 9060bc1590
commit 672b3298a7
2 changed files with 14 additions and 1 deletions

View File

@ -2,7 +2,8 @@ from django.conf import settings
def getsetting(name):
return getattr(settings, name, DEFAULTS.get(name))
value = getattr(settings, name, None)
return value or DEFAULTS.get(name)
DEFAULTS = {

View File

@ -147,3 +147,15 @@ STATIC_ROOT = config('STATIC_ROOT')
# Backend API configuration
API_BASE_URL = config('API_BASE_URL')
# External services URLs
URL_DB_PHPMYADMIN = config('URL_DB_PHPMYADMIN', None)
URL_MAILTRAIN = config('URL_MAILTRAIN', None)
URL_SAAS_GITLAB = config('URL_SAAS_GITLAB', None)
URL_SAAS_OWNCLOUD = config('URL_SAAS_OWNCLOUD', None)
URL_SAAS_WORDPRESS = config('URL_SAAS_WORDPRESS', None)