API reference#
Module by module reference for the next.dj public API. Each page lists the public surface plus configuration and signal entries that belong to the subsystem.
Top-level API
The next package itself exports five curated names, the ones that page modules, component modules, and form handlers use most often.
Import them from the package root with from next import Depends, action, component, context, page.
next.pageThe page manager that owns template registration and rendering, re-exported from Pages reference.
next.contextThe page context decorator, re-exported from Pages reference and documented in Decorators and markers.
next.componentThe component context manager behind
@component.context, re-exported from Components reference.next.actionThe form action decorator, re-exported from Forms reference.
next.DependsThe dependency marker for injected values, re-exported from Dependency injection reference.
next.VERSIONThe framework version string, the sixth and only eager name in
next.__all__.
Each of the five resolves from its owning subpackage on first attribute access, so import next on its own pulls in no Django module.
Anything outside the five stays a deep import, such as from next.urls import DUrl or from next.forms import Form.
The subsystem pages below are the reference for that wider surface.
Warning
next.page and next.pages differ by one letter and name different things.
next.page is the manager object re-exported at the package root, while next.pages is the subpackage that owns it together with the rest of the pages API.
Note
The curated context is the decorator, not the Context and ContextResult classes that share the word.
Those classes belong to the same subpackage and stay behind from next.pages import Context, ContextResult.
The laziness covers the package root, not the subsystems it fronts.
Reading Depends imports next.deps, which pulls in a small set of modules from django.dispatch and django.utils.
Reading page, context, component, or action loads a much larger part of Django.
Subsystems
- Pages reference
next.pagesfor page modules, layouts, context, and template loaders.- Components reference
next.componentsfor component discovery and rendering.- URLs reference
next.urlsfor the file router, URL reverse helpers, and dispatcher.- Forms reference
next.formsfor form actions, dispatch, formsets, and frozen specs.- Static reference
next.staticfor the static collector, asset kinds, and backends.- next.partial API reference
next.partialfor the patch builder, zones, SSE streams, and the protocol backend.- Dependency injection reference
next.depsfor the dependency resolver and providers.- Configuration reference
next.conffor settings loading and theextend_default_backendhelper.- Server reference
next.serverfor the autoreload watcher.- Signals reference
next.signalsaggregator that re-exports every framework signal.- Testing reference
next.testingfor the test client, signal recorder, and isolation helpers.- Apps reference
next.appsfor the Django application configuration.- Utils reference
next.utilsfor small helpers that the framework uses internally.- Backends reference
next.backendsfor the shared loading of settings-driven backend families.
Configuration
- Settings
Every
NEXT_FRAMEWORKkey with defaults.- System checks
Django system checks that the framework contributes.
Templates and decorators
- Template tags
Every template tag registered by
next.dj.- Decorators and markers
Every public decorator and dependency marker.