Source code for next.apps.config

"""`AppConfig` for next-dj that wires reloader, templates, finders, and components."""

from __future__ import annotations

from django.apps import AppConfig

from next.checks import register_all as _register_checks

from . import autoreload, components, staticfiles, templates


[docs] class NextFrameworkConfig(AppConfig): """Connect autoreload, template tag builtins, and filesystem watches.""" name = "next" verbose_name = "Next Django Framework"
[docs] def ready(self) -> None: """Register checks and install every startup hook.""" _register_checks() autoreload.install() templates.install() staticfiles.install() components.install()
__all__ = ["NextFrameworkConfig"]