mirror of
https://github.com/carrotquest/django-clickhouse.git
synced 2024-11-11 03:46:46 +03:00
bac333d03a
2) Some fixes
52 lines
997 B
Python
52 lines
997 B
Python
"""
|
|
This file contains django settings to run tests with runtests.py
|
|
"""
|
|
SECRET_KEY = 'fake-key'
|
|
|
|
DATABASES = {
|
|
'default': {
|
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
|
'NAME': 'test',
|
|
'USER': 'test',
|
|
'PASSWORD': 'test',
|
|
'HOST': '127.0.0.1',
|
|
'PORT': '5432'
|
|
},
|
|
'secondary': {
|
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
|
'NAME': 'test2',
|
|
'USER': 'test',
|
|
'PASSWORD': 'test',
|
|
'HOST': '127.0.0.1',
|
|
'PORT': '5432'
|
|
}
|
|
}
|
|
|
|
LOGGING = {
|
|
'version': 1,
|
|
'handlers': {
|
|
'console': {
|
|
'class': 'logging.StreamHandler',
|
|
},
|
|
},
|
|
'loggers': {
|
|
'django-clickhouse': {
|
|
'handlers': ['console'],
|
|
'level': 'DEBUG'
|
|
}
|
|
}
|
|
}
|
|
|
|
INSTALLED_APPS = [
|
|
"src",
|
|
"tests"
|
|
]
|
|
|
|
CLICKHOUSE_SYNC_BATCH_SIZE = 5000
|
|
CLICKHOUSE_REDIS_CONFIG = {
|
|
'host': '127.0.0.1',
|
|
'port': 6379,
|
|
'db': 8,
|
|
'socket_timeout': 10
|
|
}
|