2015-04-27 14:54:17 +00:00
|
|
|
from orchestra.core.validators import validate_hostname
|
|
|
|
|
2015-05-04 19:52:53 +00:00
|
|
|
from orchestra.contrib.settings import Setting
|
2014-05-08 16:59:35 +00:00
|
|
|
|
2015-04-26 13:53:00 +00:00
|
|
|
|
2015-04-27 14:54:17 +00:00
|
|
|
DATABASES_TYPE_CHOICES = Setting('DATABASES_TYPE_CHOICES',
|
|
|
|
(
|
2015-04-27 12:24:17 +00:00
|
|
|
('mysql', 'MySQL'),
|
|
|
|
('postgres', 'PostgreSQL'),
|
|
|
|
),
|
|
|
|
validators=[Setting.validate_choices]
|
|
|
|
)
|
2014-05-08 16:59:35 +00:00
|
|
|
|
|
|
|
|
2015-04-27 14:54:17 +00:00
|
|
|
DATABASES_DEFAULT_TYPE = Setting('DATABASES_DEFAULT_TYPE',
|
|
|
|
'mysql',
|
|
|
|
choices=DATABASES_TYPE_CHOICES,
|
|
|
|
)
|
2014-05-08 16:59:35 +00:00
|
|
|
|
|
|
|
|
2015-04-27 14:54:17 +00:00
|
|
|
DATABASES_DEFAULT_HOST = Setting('DATABASES_DEFAULT_HOST',
|
|
|
|
'localhost',
|
2017-07-07 09:30:35 +00:00
|
|
|
# validators=[validate_hostname],
|
2015-04-27 14:54:17 +00:00
|
|
|
)
|
2016-05-27 09:54:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
DATABASES_MYSQL_DB_DIR = Setting('DATABASES_MYSQL_DB_DIR',
|
|
|
|
'/var/lib/mysql',
|
|
|
|
)
|
2023-12-15 08:58:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
DATABASES_SERVERS = Setting('DATABASES_SERVERS', (
|
|
|
|
'wpmu',
|
|
|
|
'mysql.pangea.lan',
|
|
|
|
'web-11.pangea.lan',
|
|
|
|
'web-12.pangea.lan',
|
|
|
|
)
|
|
|
|
)
|