Ejemplo n.º 1
0
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""

import os
from lisa_api.lisa.plugin_manager import PluginManager
from lisa_api.lisa.configuration import CONF as config

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
config.load(filenames=[
    '/etc/lisa/conf/lisa_api.ini',
    BASE_DIR + '/lisa_api.ini',
])

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '!k7%j+#7j%=$qsc)b=_m-0fl5f0k-sd7y9olt=cul-q^rcko^3'

# SECURITY WARNING: don't run with debug turned on in production!

config.add_opt(name='debug', value=True, section='api')
DEBUG = config.api.debug

ALLOWED_HOSTS = []
Ejemplo n.º 2
0
 def setUp(self):
     super(CoreTests, self).setUp()
     config.add_opt(name='tts', value='pico', section='api')
Ejemplo n.º 3
0
 def handle(self, *args, **options):
     if options['save']:
         CONF.save(filename=options['filename'])
         self.stdout.write(_('Successfully saved the configuration'))
     else:
         raise CommandError(_('You must specify an option and a filename. Check the help'))
Ejemplo n.º 4
0
 def setUp(self):
     super(CoreTests, self).setUp()
     config.add_opt(name="user", value="guest", section="rabbitmq")
     config.add_opt(name="password", value="guest", section="rabbitmq")
     config.add_opt(name="host", value="localhost", section="rabbitmq")
     config.add_opt(name="speak", value="rabbitmq", section="api")
Ejemplo n.º 5
0
 def setUp(self):
     super(CoreTests, self).setUp()
     config.add_opt(name='user', value='guest', section='rabbitmq')
     config.add_opt(name='password', value='guest', section='rabbitmq')
     config.add_opt(name='host', value='localhost', section='rabbitmq')
     config.add_opt(name='speak', value='rabbitmq', section='api')
Ejemplo n.º 6
0
 def setUp(self):
     super(CoreTests, self).setUp()
     config.add_opt(name='tts', value='pico', section='api')