@@ -0,0 +1,590 @@
+from django.contrib.auth import User%0Afrom django.dispatch import receiver%0Afrom django.db.models.signals import post_save, post_delete%0Afrom models import ImagerProfile%0A%0A%0A@receiver(post_save, sender=User)%0Adef auto_create_profile(sender, instance, **kwargs):%0A    try:%0A        instance.profile%0A    except ImagerProfile.DoesNotExist:%0A        instance.profile = ImagerProfile()%0A        instance.profile.save()%0A%0A%0A@receiver(post_delete, sender=User)%0Adef auto_delete_profile(sender, instance, **kwargs):%0A    try:%0A        instance.profile.delete()%0A    except ImagerProfile.DoesNotExist:%0A        pass%0A

move receivers to handlers