Install djcrud

Install the package

pip install --pre djcrud

This installs djcrud with all runtime dependencies including the Bulma UI framework.

Upgrading from djmvc

If your project uses the last djmvc release (Controller, ModelController, djmvc.py), see Migrating from djmvc for the full breaking-change guide and checklist.

Note

The --pre flag is required to install pre-release versions of dependencies (currently django-autocomplete-light>=5.1).

Tip

Want to try djcrud first? See Try the demo for a quick walkthrough of the example project.

For local development (tests, docs, example project):

git clone https://github.com/jpic/djcrud.git
cd djcrud
pip install --pre -e ".[dev,docs]"

Create a Django project

django-admin startproject myproject
cd myproject

Configure settings

Import the djcrud apps and add Django’s contrib apps:

# myproject/settings.py
import djcrud.settings

INSTALLED_APPS = djcrud.settings.INSTALLED_APPS + [
    "django.contrib.admin",
    "django.contrib.auth",
    "django.contrib.contenttypes",
    "django.contrib.sessions",
    "django.contrib.messages",
    "django.contrib.staticfiles",
    # your apps with a djcrud.py module:
    # "myapp",
]

djcrud.settings.INSTALLED_APPS includes djcrud core, Bulma UI, authentication, autocomplete (DAL), site search, and audit logging. It does not include djcrud_api (Bearer tokens), djcrud_drf (REST API), or djcrud_mcp (agent MCP bridge) — enable API packages in DRF API and the MCP client in Agents (MCP bridge) when you need them. The order ensures dal and dal_alight load before django.contrib.admin.

Optional extras

Extra

Install

Purpose

drf

pip install --pre "djcrud[drf]"

DRF ViewSets, OpenAPI schema at /api/schema/

mcp

pip install --pre "djcrud[mcp]"

stdio MCP bridge (djcrud-client); requires [drf] on the Django host

dev

pip install --pre "djcrud[dev]"

pytest, tox, splinter

docs

pip install --pre "djcrud[docs]"

Sphinx build

Initialize the database

python manage.py migrate
python manage.py createsuperuser

Configure URLs

Wire the djcrud site in your project’s urls.py:

# myproject/urls.py
from django.contrib import admin
from django.urls import path
import djcrud

urlpatterns = djcrud.site.build().urlpatterns + [
    path("admin/", admin.site.urls),
]

build() autodiscovers every installed app’s djcrud.py module and builds the routing tree.

Start developing

python manage.py runserver

Visit http://localhost:8000/auth/login/ to log in with your superuser credentials.

Next steps

Tutorial: Start with Routing to create your first model router.

Reference documentation:

Example project: See the full example project settings at djcrud_example/settings.py on GitHub.