I recommend you start by installing django-notifications . This is what I usually use for this type of tasks and allows you to abstract the subject of notifications of any model you want to associate it with.
Once installed, just use signals
so that when there are modifications or creations of Event
you create the relevant notification. For example:
# signals.py
...
@receiver(post_save, sender=models.Event)
def notify_event(sender, instance, created, **kwargs):
if created:
notify.send(instance.author,
recipient=recipient,
verb='ha creado un evento',
target=instance)
For more information regarding signals
, you can take a look here .