# 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 = [] config.add_opt(name='tts', value='google', section='api') config.add_opt(name='speak', value='rabbitmq', section='api') # Application definition PREREQ_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages',
def setUp(self): super(CoreTests, self).setUp() config.add_opt(name='tts', value='pico', 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="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')