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 = []
def setUp(self): super(CoreTests, self).setUp() config.add_opt(name='tts', value='pico', section='api')
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'))
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")
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')
def setUp(self): super(CoreTests, self).setUp() config.add_opt(name='tts', value='pico', section='api')