# Django Training¶

## Management command¶

When using ChatterBot with Django, the training process can be executed by running the training management command.

python manage.py train


## Training settings¶

You can specify any data that you want to be passed to the chat bot trainer in the training_data parameter in your CHATTERBOT Django settings.

CHATTERBOT = {
# ...
'trainer': 'chatterbot.trainers.ChatterBotCorpusTrainer',
'training_data': [
'chatterbot.corpus.english.greetings'
]
}


Note

You can also specify paths to corpus files or directories of corpus files in the training_data list.

See the documentation for the Training classes for other training class options that can be used here.