Skip to content
Back to skills

Django Integration

ASecurity

"Use ChatterBot Django app integration, DjangoStorageAdapter,

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
databasespythongobashsqldjangoapidatabase

Works with

  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill django-integration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Django Integration?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Django Integration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-django-integration/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-django-integration)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: django-integration
description: "Use ChatterBot Django app integration, DjangoStorageAdapter,
  CHATTERBOT settings, migrations, swappable models, admin, views, and example
  project workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: BSD 3-Clause
---

# Django Integration

Use this sub-skill when a task asks how to add ChatterBot to a Django project, configure `chatterbot.ext.django_chatterbot`, run migrations, use `DjangoStorageAdapter`, customize statement/tag models, debug Django settings, or adapt the ChatterBot Django example app.

## Quick route

1. Read [references/django-api.md](references/django-api.md) for adapter, settings, models, and migration facts.
2. Read [references/workflows.md](references/workflows.md) for project setup, minimal settings, custom models, view/API wiring, and example app smoke checks.
3. Read [references/troubleshooting.md](references/troubleshooting.md) for `ImproperlyConfigured`, missing apps, migrations, database aliases, and swappable model issues.
4. Run [scripts/django_config_smoke.py](scripts/django_config_smoke.py) for a safe in-memory Django configuration check.

## Required setup

A Django project must install both Django and ChatterBot:

```bash
python -m pip install django chatterbot
```

Add the app:

```python
INSTALLED_APPS = [
    # ...
    "chatterbot.ext.django_chatterbot",
]
```

Run migrations:

```bash
python manage.py migrate django_chatterbot
```

Then create a bot with Django storage:

```python
from chatterbot import ChatBot

bot = ChatBot(
    "Django Bot",
    storage_adapter="chatterbot.storage.DjangoStorageAdapter",
)
```

## ChatterBot Django settings

The extension provides default settings in `chatterbot.ext.django_chatterbot.settings`:

```python
CHATTERBOT = {
    "name": "ChatterBot",
    "storage_adapter": "chatterbot.storage.DjangoStorageAdapter",
    "django_app_name": "django_chatterbot",
}
```

In project settings, override `CHATTERBOT` as needed, but keep the Django storage adapter when using Django ORM tables.

## Swappable models

The default models are swappable:

- `CHATTERBOT_STATEMENT_MODEL`
- `CHATTERBOT_TAG_MODEL`

Use custom models only when you understand Django swappable model migration rules. For ordinary projects, prefer the default `Statement` and `Tag` models.

## Boundaries

- For raw SQL/Mongo/Redis storage, use [storage-adapters](../storage-adapters/SKILL.md).
- For core bot behavior and `get_response`, use [core-chatbot](../core-chatbot/SKILL.md).
- For training APIs, use [training](../training/SKILL.md).
- For logic adapter configuration, use [logic-adapters](../logic-adapters/SKILL.md).

Files in this skill

  • SKILL.md2.6 KB
  • references/django-api.md2.8 KB
  • references/troubleshooting.md3.2 KB
  • references/workflows.md4.3 KB
  • scripts/django_config_smoke.py1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.