django-orchestra/orchestra/settings.py

59 lines
1.2 KiB
Python
Raw Normal View History

2014-05-08 16:59:35 +00:00
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
# Domain name used when it will not be possible to infere the domain from a request
# For example in periodic tasks
SITE_URL = getattr(settings, 'SITE_URL',
'http://localhost'
)
SITE_NAME = getattr(settings, 'SITE_NAME',
'orchestra'
)
2014-05-08 16:59:35 +00:00
SITE_VERBOSE_NAME = getattr(settings, 'SITE_VERBOSE_NAME',
_("%s Hosting Management" % SITE_NAME.capitalize())
)
2014-05-08 16:59:35 +00:00
BASE_DOMAIN = getattr(settings, 'BASE_DOMAIN',
'orchestra.lan'
)
2014-05-08 16:59:35 +00:00
# Service management commands
START_SERVICES = getattr(settings, 'START_SERVICES', [
'postgresql',
'celeryevcam',
'celeryd',
'celerybeat',
('uwsgi', 'nginx'),
])
2014-05-08 16:59:35 +00:00
RESTART_SERVICES = getattr(settings, 'RESTART_SERVICES', [
'celeryd',
'celerybeat',
'uwsgi'
])
2014-05-08 16:59:35 +00:00
STOP_SERVICES = getattr(settings, 'STOP_SERVICES', [
('uwsgi', 'nginx'),
'celerybeat',
'celeryd',
'celeryevcam',
'postgresql'
])
2014-05-13 13:46:40 +00:00
API_ROOT_VIEW = getattr(settings, 'API_ROOT_VIEW',
'orchestra.api.root.APIRoot'
)
2014-10-24 10:16:46 +00:00
ORCHESTRA_DEFAULT_SUPPORT_FROM_EMAIL = getattr(settings, 'ORCHESTRA_DEFAULT_SUPPORT_FROM_EMAIL',
'support@{}'.format(BASE_DOMAIN)
)