Repository Examples

The examples/ tree in the next.dj repository holds self-contained Django projects. Each runs on SQLite and in-process LocMemCache. No Docker, Node, or external services are required beyond what the examples README lists for a given folder.

Catalog

Every row links to the folder on GitHub and summarises the focus in one line. The Primary docs column points to the sections of this manual where the techniques appear.

Folder

Focus

Primary docs

shortener

File router, DI providers, LocMemCache, management command

File Router, Dependency Injection

markdown-blog

Markdown posts, nested layouts, @context(serialize=True), context processor, co-located component.js

Layouts, Context, JavaScript Context

feature-flags

Composite feature_guard, signal receivers, cache invalidation

Components, Signals

audit-forms

Custom FormActionBackend, action_dispatched / form_validation_failed, dual audit channels

Action Backends, Form Signals

search-catalog

DQuery[T], faceted filters, nested layouts, inherit_context=True, cached search

Dependency Injection, Context

wiki

HybridRouterBackend, router_manager.reload() on signal, DI, forms with live Markdown preview

File Router, Write a Router Backend

multi-tenant

Tenant middleware, request-scoped static URLs, shared blocks via DEFAULT_COMPONENT_BACKENDS DIRS

Scope Requests Per Tenant, Static Backends

kanban

Custom StaticBackend, .jsx kind, DeepMergePolicy, HashContentDedup, composite components

Asset Kinds, Deduplication

live-polls

Server-Sent Events broker, action_dispatched fan-out, Vue SFC asset kind, nested layouts

Stream Live Updates With SSE, Extending

observability

Signal groups, custom ComponentsBackend, DedupStrategy, global and per-key JsContextSerializer

Signals, Extending

admin

Django admin beside next.dj pages, request-aware form factories, two page roots, middleware guard

Integrate Django Admin, Multi-Project Setup

Shared assets

  • _shared. A shared component palette consumed through DEFAULT_COMPONENT_BACKENDS DIRS.

  • _template. An empty scaffold to copy when starting a new example-shaped project.

See Also

See also

What to Read Next places these examples on the learning paths. Extending maps extension mechanisms to sample projects.