You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
553 B
20 lines
553 B
"""
|
|
Default ChatterBot settings for Django.
|
|
"""
|
|
from django.conf import settings
|
|
from chatterbot import constants
|
|
|
|
|
|
CHATTERBOT_SETTINGS = getattr(settings, 'CHATTERBOT', {})
|
|
|
|
CHATTERBOT_DEFAULTS = {
|
|
'name': 'ChatterBot',
|
|
'storage_adapter': 'chatterbot.storage.DjangoStorageAdapter',
|
|
'input_adapter': 'chatterbot.input.VariableInputTypeAdapter',
|
|
'output_adapter': 'chatterbot.output.OutputAdapter',
|
|
'django_app_name': constants.DEFAULT_DJANGO_APP_NAME
|
|
}
|
|
|
|
CHATTERBOT = CHATTERBOT_DEFAULTS.copy()
|
|
CHATTERBOT.update(CHATTERBOT_SETTINGS)
|