def observe(observed, observer, notice_type_label, signal="post_save"):
    notice_type = NoticeType.objects.get(label=notice_type_label)
    observed_item = ObservedItem(
        user=observer, observed_object=observed,
        notice_type=notice_type, signal=signal
    )
    observed_item.save()
    return observed_item
Accepts a template object, path-to-template or list of paths
dataset/ETHPy150Open amarandon/smeuhsocial/apps/notification/models.py/observe--crossover with--dataset/ETHPy150Open django/django/django/template/response.py/SimpleTemplateResponse.resolve_template