API Reference¶
This page contains the API reference documentation for the RouteLit Django adapter.
RouteLitDjangoAdapter¶
routelit_django.adapter.RouteLitDjangoAdapter(routelit, *, static_path=None, template_path=get_default_template_path(), run_mode='prod', local_frontend_server=None, local_components_server=None, cookie_config=None)
¶
A Django adapter for the RouteLit framework, enabling seamless integration of RouteLit's reactive UI components with Django web applications.
DjangoSessionStorage¶
routelit_django.storage.DjangoSessionStorage()
¶
Bases: MutableMapping[str, Any]
A RouteLit session storage implementation that delegates to the current Django request session. It uses a context variable to access the session of the current request.
DjangoRouteLitRequest¶
routelit_django.request.DjangoRouteLitRequest(request)
¶
Bases: RouteLitRequest
Implements the RouteLitRequest interface for Django.
RunMode¶
routelit_django.adapter.RunMode = Literal['prod', 'dev_client', 'dev_components']
module-attribute
¶
RunModeEnum¶
routelit_django.adapter.RunModeEnum
¶
Bases: Enum
Exports¶
The following are exported from the routelit_django package: