title: In Django Signals, What is difference between these two codes?
body: <p>First CODE:</p>
  
  <pre><code>@receiver(post_save, sender=User)
  def create_user_profile(sender, instance, created, **kwargs):
      if created:
          Profile.objects.create(user=instance)
  
  @receiver(post_save, sender=User)
  def save_user_profile(sender, instance, **kwargs):
      instance.profile.save()
  </code></pre>
  
  <p>Second CODE:</p>
  
  <pre><code>@receiver(post_save, sender=User)
  def create_or_save_user_profile(sender, instance, created, **kwargs):
      if created:
          Profile.objects.create(user=instance)
      else:
          instance.profile.save()
  </code></pre>
  
  <p>Is there any difference in actually what they work?</p>