Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

861 B
Raw Blame
from django.apps import AppConfig


class ReviewHogConfig(AppConfig):
    default_auto_field = "django.db.models.BigAutoField"
    name = "products.review_hog.backend"
    label = "review_hog"

    def ready(self) -> None:
        # Deferred import: models aren't loadable at module import time, and ready() must stay light.
        from products.review_hog.backend import receivers  # noqa: PLC0415

        receivers.connect()
        # The settings receivers must connect in every process, so that a write from a shell or a
        # management command is logged too, not only a write from the API. The same applies to the
        # receivers that clear the cached ownership summary the webhook handler reads.
        from products.review_hog.backend import activity_logging, ownership, task_profiles  # noqa: F401, PLC0415

        task_profiles.register()