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, {% zone %} lists patched through Patches envelopes, management command

File router, Dependency injection, Partial rendering

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 signals, dual audit channels, FormWizard in a modal layer, lazy audit-table zone

Form wizards, Action backends, Form signals, Partial rendering

search-catalog

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

Dependency injection, Context

wiki

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

File router, Write a router backend, Partial rendering

multi-tenant

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

Scope requests per tenant, Static backends

kanban

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

Asset kinds, Deduplication, Framework islands

live-polls

Framework SSE bridge, refresh patches, request-id echo, action_dispatched fan-out, Vue SFC asset kind

SSE under WSGI and ASGI, Stream live updates with SSE, Extending, Framework islands

observability

Signal groups, custom ComponentsBackend, DedupStrategy, polling and lazy zones, custom patch verb, per-key JsContextSerializer

Signals, Extending, Partial rendering

admin

Django admin UI rebuilt on next.dj, request-aware form factories, server-opened modal layers, two page roots, middleware guard

Integrate Django admin, Multi-project setup, Partial rendering

Shared assets#

  • _shared. A shared component palette consumed through 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.