Getting Started
Install The Library
Choose the smallest dependency set that matches your project:
pip install codex-django
pip install "codex-django[cli]"
pip install "codex-django[dev]"
codex-django requires Python 3.12+ and Django 5+.
Scaffold A New Project
Project scaffolding lives in the companion package codex-django-cli:
pip install "codex-django[cli]"
# or: pip install codex-django-cli
codex-django init myproject
cd myproject
python -m venv .venv
.venv\Scripts\activate
pip install -e .
python src/myproject/manage.py migrate
python src/myproject/manage.py runserver
The interactive entrypoint is also available through that companion package:
codex-django
That menu is useful when you want to choose i18n mode, language codes, or optional modules without memorizing flags.
Add Optional Modules Later
Use the companion CLI's interactive scaffold menu to select optional modules:
codex-django menu
For a new project, select modules directly with codex-django init myproject --with-booking --with-messaging. Review generated files and follow-up steps before wiring settings, admin, migrations, and URLs. Existing files are skipped unless overwrite is explicitly selected.
Typical Development Loop
uv sync --extra dev
uv run pytest
uv run mypy src/
uv run python tools/dev/check.py --lint
uv build --no-sources
Where To Go Next
- Read the architecture section if you need module boundaries and design rationale.
- Read the module guides if you want practical setup checklists.
- Read the API reference if you already know which package you need to import.