django-orchestra/orchestra/contrib/databases/settings.py

18 lines
376 B
Python
Raw Normal View History

2014-05-08 16:59:35 +00:00
from django.conf import settings
2015-04-26 13:53:00 +00:00
from orchestra.settings import Setting
2014-05-08 16:59:35 +00:00
2015-04-26 13:53:00 +00:00
DATABASES_TYPE_CHOICES = Setting('DATABASES_TYPE_CHOICES', (
2014-05-08 16:59:35 +00:00
('mysql', 'MySQL'),
('postgres', 'PostgreSQL'),
))
2015-04-26 13:53:00 +00:00
DATABASES_DEFAULT_TYPE = Setting('DATABASES_DEFAULT_TYPE', 'mysql', choices=DATABASES_TYPE_CHOICES)
2014-05-08 16:59:35 +00:00
2015-04-26 13:53:00 +00:00
DATABASES_DEFAULT_HOST = Setting('DATABASES_DEFAULT_HOST',
'localhost'
)