from django.dispatch import Signal stream_active = Signal() stream_inactive = Signal()